Startup
This commit is contained in:
+16
-5
@@ -10,14 +10,25 @@ st1 = Stream("st1", dispatcher)
|
||||
|
||||
st1.addScalar("scpu", "SINDI01-RLLE-STA:SLAVE1-CPUTIMER", 10, 0)
|
||||
st1.addScalar("mcpu", "SINDI01-RLLE-STA:MASTER-CPUTIMER", 10, 0)
|
||||
|
||||
st1.addWaveform("amp", "SINDI01-RCIR-PUP10:SIG-AMPLT", 10, 0, 2048)
|
||||
|
||||
st1.addWaveform("amp", "SINDI01-RCIR-PUP10:SIG-AMPLT", 10, 0)
|
||||
st1.initialize()
|
||||
st1.start(True)
|
||||
|
||||
#st1.start(True)
|
||||
|
||||
|
||||
class PseudoPositioner(Writable):
|
||||
def write(self,pos):
|
||||
print "Step = " + str(pos)
|
||||
pseudo_motor = PseudoPositioner()
|
||||
|
||||
|
||||
try:
|
||||
#Dumps to file all pulse IDs
|
||||
bscan (st1, 10, title="bscan")
|
||||
tscan (st1.getReadables(), 10,0.1, title="tscan")
|
||||
|
||||
#When sampling the stream waits for next value in normal scans/
|
||||
#tscan (st1.getReadables(), 10,0.1)
|
||||
|
||||
#lscan (pseudo_motor, [gsx,] + st1.getReadables(), 0, 10, 10, latency=0.1)
|
||||
finally:
|
||||
st1.close()
|
||||
|
||||
Reference in New Issue
Block a user