13.07.2015 Views

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Started20 OUTPUT 707; “:scan (@1!1:1!10)”25 OUTPUT 707; “:trig:sour bus”30 OUTPUT 707; “:init”40 ENDLine 10Line 20Line 25Line 30Return 7002 to :SYSTem:PRESet default configuration(scan count = infinite, channel count = 10channels, channel control source = manual).Define scan list.Program channel control source for bus triggers.Take 7002 out of idle state.When the above program is run, the scan will arm and thenwait for bus triggers to control the channel scan. Any of thefollowing two programming statements can be used to providea bus trigger:OUTPUT 707; “*TRG”TRIGGER 707Every time one of the above statements is executed, a bustrigger will occur causing the next channel in the scan list tobe scanned.Programming example #4:Timer controlled channel scanThe program in Example #2 is modified so that the channelscan 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 ENDLine 10Line 20Line 25Line 26Line 30Returns 7002 to :SYSTem:PRESet default configuration(scan count = infinite, channel count =10 channels, channel control source = manual).Define scan list.Program channel control source for timer.Set timer for 0.5 second interval.Take 7002 out of idle state.When the above program is run, the scan will arm and scanchannels continuously at a 0.5 second rate.Programming example #5:Timer controlled scanThe program in Example #4 is modified to perform twoscans, the first scan will start immediately and the secondscan 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 ENDLine 10 Return 7002 to :SYSTem:PRESet default configuration(scan count = infinite, channel count = 10channels, 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 scan layer timer for 10 second interval.Line 25 Program channel control source for timer.Line 26 Set channel layer timer for 0.5 second interval.Line 30 Take 7002 out of idle state to start the scan.3-21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!