Example: Scanning
Using Trig Out and
Event In Ports
This example uses the mainframe Trig Out and Event In ports to
synchronize Form C switch channel closures with an external measurement
device. See the following figure for typical user connections. For this
example, the mainframe and instrument are connected via GPIB with
mainframe address of 709 and instrument address of 722. The Form C
Switch logical address is 120 (secondary address = 120/8 = 15).
With this example, since synchronization with the computer cannot be
ensured, the external instrument must have internal memory capacity to
store the readings. Also, you must add the appropriate instrument
commands to line 10. The sequence of operation is:
1. INIT (line 50) closes channel 100.
2. Closure causes trigger to be output from Trig Out port.
3. Trigger to Ext Trig In initiates channel 100 measurement.
4. Channel 100 measurement result is stored in instrument.
5. Trigger is then output from Measurement Complete port.
6. Trigger to Event In port advances scan to channel 101.
7. Steps 2-6 are repeated for channels 101-102.
10 OUTPUT 722; "TRIG EXT;...." Configure instrument
20 OUTPUT 70915; "0UTP ON" Enable Trig Out port
30 OUTPUT 70915; "TRIG:SOUR EXT" Event In triggering
40 OUTPUT 70915; "SCAN (@100:102)" Scan channels 00 - 02
50 OUTPUT 70915; "INIT" Enable scan
60 END
Chapter 4 Understanding the Agilent E1364A Form C Switch 37