This commit is contained in:
sfop
2016-12-16 08:33:18 +01:00
parent bab567fbfd
commit 4f1850787c
7 changed files with 40 additions and 29 deletions
+16 -5
View File
@@ -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()