Getting Started
3-23
Programming example #4 timer controlled
channel scan
The program in Example #2 is modified so that the
channel scan will be controlled by a timer:
10 OUTPUT 707; “:syst:pres”
20 OUTPUT 707; “:scan (@1!1:1!10)”
25 OUTPUT 707; “:trig:sour tim”
26 OUTPUT 707; “:trig:tim 0.5”
30 OUTPUT 707; “:init”
40 END
Line 10 Return 7001 to :SYSTem:PRESet default con-
figuration (scan count = infinite, channel
count = 10 channels, channel control source =
manual).
Line 20 Define scan list.
Line 25 Program channel control source for timer.
Line 26 Set timer for 0.5 second interval.
Line 30 Take 7001 out of idle state.
When the above program is run, the scan will arm and
scan channels continuously at a 0.5 second rate.
Programming example #5 timer controlled scan
The program in Example #4 is modified to perform
two scans, the first scan will start immediately and the
second scan will start 10 seconds after the start of the
first scan:
10 OUTPUT 707; “:syst:pres”
20 OUTPUT 707; “:scan (@1!1:1!10)”
22 OUTPUT 707; “:arm:lay2:coun 2”
23 OUTPUT 707; “:arm:lay2:sour tim”
24 OUTPUT 707; “:arm:lay2:tim 10”
25 OUTPUT 707; “:trig:sour tim”
26 OUTPUT 707; “:trig:tim 0.5”
30 OUTPUT 707; “:init”
40 END
Line 10 Return 7001 to :SYSTem:PRESet default con-
figuration (scan count = infinite, channel
count = 10 channels, channel control source =
manual).
Line 20 Define scan list.
Line 22 Program scan count to 2.
Line 23 Program scan control source for timer.
Line 24 Set timer for 10 second interval.
Line 25 Program channel control source for timer.
Line 26 Set timer for 0.5 second interval.
Line 30 Take 7001 out of idle state.
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com