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()
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
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