
Section 4
Applications
In this section:
About the Series 3700A examples ........................................... 4-1
Scanning examples.................................................................. 4-1
Example: TSP-Link and interactive triggers ........................... 4-10
Example: Using the scanning and triggering model ............... 4-15
Example: IEEE-1588 in Series 3700A-based systems........... 4-20
Example: External DMM and switch triggering....................... 4-22
Example: DMM buffer statistics with interactive operation ..... 4-25
Example: Commonside ohm measurement with Model 3721 4-27
About the Series 3700A examples
This section shows you how to use the Series 3700A for a variety of uses.
Scanning examples
NOTE
In the examples, to clear a trigger stimulus after setting, set the stimulus to 0, which returns the
stimulus setting back to its factory default value, which may or may not be 0.
Example: Scan the card with no measurement (switch-only)
The following examples assume a Keithley Instruments Model 3720 card is installed in slot 3 of a
Series 3700A. This example scans all channels in a slot in a switch-only application (no
measurements are taken).
Digital I/O line 1 is used to initiate a background scan.
Example program code for the Series 3700A
Code
Notes and comments
reset()
Reset the Series 3700A to factory
defaults.
scan.create("slot3")
Create a scan for all channels on the card
installed in slot 3.
digio.trigger[1].mode = digio.TRIG_FALLING
Set up digital I/O line 1 to detect a falling-
edge trigger.
scan.trigger.arm.stimulus =
digio.trigger[1].EVENT_ID
Use a digital I/O event as the stimulus of
the arm layer of the trigger model.
scan.background()
Start the scan and runs the scan in the
background.