Instrument Scripting and Control

This page contains some examples of scripts made from instrument control commands

Example:
 CSET/CONTROL temp1=300.0 lowlimit=295.0 highlimit=305.0
 CSET/WAIT temp1=300.0 lowlimit=295.0 highlimit=305.0
 CSET wccr -150.0
 CHANGE title="thiourea parabanic acid 300 K wccr=-150 Tilt OR2 j:15,10"
 BEGIN
 SLEEP 60
 WAITFOR uamps=30.0
 UPDATESTORE
 WAITFOR uamps=200.0
 END
Example:
 PROCEDURE SXD_SUB
 PARAMETERS ccr_val t1
 LOCAL tmp
 SETLABVIEWVAR "sxd ccr - front panel.vi" "Target" ccr_val
 PUSHLABVIEWBUTTON "sxd ccr - front panel.vi" "Move" 
 LOOP
     tmp = GETLABVIEWVAR("sxd ccr - front panel.vi", "Ready")
     EXITIF tmp = 1
     PRINTIN "waiting for ccr"
     SLEEP 5
 ENDLOOP
 CSET temp1=t1
 LOOP
     tmp = GETLABVIEWVAR("eurotherm controller - details.vi", "Temperature - 0")
     EXITIF (abs(t1 - tmp) <= 20)
     PRINTIN "waiting for eurotherm"
     SLEEP 5
 ENDLOOP
 ENDPROCEDURE

 PROCEDURE SXD_SCAN
 SXD_SUB -155.0 300.0
 BEGIN
 WAITFOR uamps=60.0
 END
 SXD_SUB -120.0 300.0
 BEGIN
 WAITFOR uamps=60.0
 END
 PRINTIN "Finished"
 ENDPROCEDURE

Generated on Wed Jul 11 23:45:35 2007 for Open GENIE GCL by  doxygen 1.5.2