Exemple #1
0
def getMaster(index):
   crate = "b0svt0"+str(i)
   spy = Board(crate, 3, SC)

   error = spy.getState(SC_JUMPER_MASTER, state)
   print "Master Status = ", state.value, " for SC in crate ", crate
   spy.closeBoard()
Exemple #2
0
 def openBoards(self):
     self.bMap = {
         'S3': Board(self.crate, 3, SC),
         'S4': Board(self.crate, 4, HF),
         'S5': Board(self.crate, 5, HF),
         'S6': Board(self.crate, 6, HF),
         'S7': Board(self.crate, 7, MRG),
         'S8': Board(self.crate, 8, AMS),
         'S12': Board(self.crate, 12, HB),
         'S13': Board(self.crate, 13, HF),
         'S14': Board(self.crate, 14, HF),
         'S15': Board(self.crate, 15, HF),
         'S16': Board(self.crate, 16, MRG),
         'S17': Board(self.crate, 17, AMS),
         'S21': Board(self.crate, 21, HB)
     }
Exemple #3
0
import sys
from org.omg.CORBA import IntHolder
import jsvtvme
from jsvtvme import Board,SvtvmeConstants
from jsvtvme.Board import *
from jsvtvme.SvtvmeConstants import *

crate = sys.argv[1]
state = IntHolder()
 
spy = Board(crate, 3, SC)

# Jumper status
spy.getState(SC_JUMPER_MASTER, state)
print 'Master enabled: ', state.value

spy.getState(SC_JUMPER_LAST, state)
print 'This board sits at the end of the daisy chain: ', state.value

# G_Bus Input Status
spy.getState(SC_GINIT_IN, state)
print 'G_INIT from upstream: ', state.value

spy.getState(SC_GFREEZE_IN, state)
print 'G_FREEZE from upstream: ', state.value

spy.getState(SC_GERROR_OUT, state)
print 'G_ERROR from downstream: ', state.value

spy.getState(SC_GLLOCK_OUT, state)
print 'G_LLOCK from downStream: ', state.value
Exemple #4
0
import sys
from org.omg.CORBA import IntHolder
import jsvtvme
from jsvtvme import Board, SvtvmeConstants
from jsvtvme.Board import *
from jsvtvme.SvtvmeConstants import *

crate = sys.argv[1]
state = IntHolder()

spy = Board(crate, 3, SC)

# Jumper status
spy.getState(SC_JUMPER_MASTER, state)
print 'Master enabled: ', state.value

spy.getState(SC_JUMPER_LAST, state)
print 'This board sits at the end of the daisy chain: ', state.value

# G_Bus Input Status
spy.getState(SC_GINIT_IN, state)
print 'G_INIT from upstream: ', state.value

spy.getState(SC_GFREEZE_IN, state)
print 'G_FREEZE from upstream: ', state.value

spy.getState(SC_GERROR_OUT, state)
print 'G_ERROR from downstream: ', state.value

spy.getState(SC_GLLOCK_OUT, state)
print 'G_LLOCK from downStream: ', state.value