Keithley 708B Reference Manual page 140

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Models 707B and 708B Switching Matrix Reference Manual
reset()
scan.add("1A05, 1B05, 1C05")
digio.trigger[3].mode = digio.TRIG_FALLING
scan.trigger.channel.stimulus =
digio.trigger[3].EVENT_ID
scan.scancount = 3
print(scan.list())
delay(5)
scan.background()
ScanState, ScanCount, StepCount = scan.state()
print(ScanState, "", ScanCount , "", StepCount)
delay(3)
print("state", " scan count", "step count")
for x = 1, (scan.scancount * scan.stepcount) do
digio.trigger[3].assert()
ScanState, ScanCount, StepCount = scan.state()
print(ScanState, "", ScanCount, "", StepCount)
delay(3)
end
On the TSB Embedded page, click Save Script to save the script. For example, name the script
ScanExample. In the User Scripts list, select ScanExample. Click Run. The output of the script is:
Init) OPEN...
1) STEP: 1A05
CLOSE: 1A05
2) STEP: 1B05
OPEN: 1A05
CLOSE: 1B05
3) STEP: 1C05
OPEN: 1B05
CLOSE: 1C05
2.000000000e+000
state
2.000000000e+000
2.000000000e+000
2.000000000e+000
707B-901-01 Rev. A / August 2010
1.000000000e+000
scan count
step count
1.000000000e+000
1.000000000e+000
1.000000000e+000
Section 3: Functions and features
Reset the instrument
Create a three channel scan list
Detect falling edges on digio trigger line 3
Configure digio trigger line 3 to pace the
scan sequence
Set the scan count to 3
Show the configured scan list
Delay 5 seconds to allow viewing of scan list
Start the scan and let if run in the
background
Get the current scan state information
Show the state of scanning
Delay 3 seconds to allow viewing of state
Header for output data from for loop
Loop for scan count times step count to step
the scan sequence
Simulate the trigger occurring on digio trigger
line 3
Get the current scan state information
Show the state of scanning
Delay 3 seconds to allow viewing of state
0.000000000e+000
Shows scan is running
(state = 2) and no steps
have completed for scan
count of 1
Shows scan is running
1.000000000e+000
(state = 2) and just
completed step 1 for scan
count of 1
Shows scan is running
2.000000000e+000
(state = 2) and just
completed step 2 for scan
count of 1
3.000000000e+000
Shows scan is running
(state = 2) and just
completed step 3 for scan
count of 1
3-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents