From a3514300ea15a16b3d223b901840f85c29936a3a Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 6 Jun 2016 15:30:43 +0200 Subject: [PATCH] Script execution --- script/test/test.py | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/script/test/test.py b/script/test/test.py index bda6bfa..d35078b 100755 --- a/script/test/test.py +++ b/script/test/test.py @@ -1,21 +1,2 @@ -################################################################################################### -# Demonstrate use of scan callbacks to trigger a detector at falling edge. -################################################################################################### - - -def BeforeReadout(): - ao1.write(1) - ao1.write(0) - - #Example with an epics direct channel access - #caput("CHANNEL_NAME", 1) - #caput("CHANNEL_NAME", 0) - -index=0 - -def AfterReadout(): - global index - print "Aquired frame: " + str(index) - index=index+1 - -a= lscan((m1,m2), (ai1, ai2), (0,0), (4,8), steps=20, latency = 0.01, before_read=BeforeReadout, after_read=AfterReadout) \ No newline at end of file +caput("SINEG01-MCRX120:I-SET", 0.0) +caget("SINEG01-MCRX120:I-READ") \ No newline at end of file