Agilent Technologies E1564A Stereo Receiver User Manual


 
44 Using the Digitizers Chapter 2
Example: Triggering
Using External
Triggering
This example use an external trigger input at the External Trigger Input
(D-connector) “Trig” input to trigger readings.
Resetting the module sets the data format to ASCii, sample source to TIMer
and trigger source to IMMediate. The sample interval and the trigger source
are changed from the reset setting.
Resetting the module also sets the trigger level to 0V and the trigger slope
to positive. Trigger level and slope commands are resent to reiterate the
level and slope of the trigger. In this case, the slope command is redundant.
*CLS
!Clear the status system
*RST
!Reset the digitizer
VOLT1:RANG 4
!Set ch 1 to 4V range
SAMP:COUN 7
!Set sample count to 7
(common to all channels)
SAMP:PRET:COUN 3
!Set pre-trigger count to 3
(common to all channels)
SAMP:TIM 100e-6
!Set sample interval to 100 µsec
TRIG:SOUR EXT
!Set trigger source to EXTernal
(requires an external input to the
“Trig” pin on the External Trigger
Input port)
TRIG:LEV1 0.5
!Set the trigger level to 0.5V
TRIG:SLOP POS
!Set trigger slope to positive
INIT
!Initiate measurements
DATA? 7,(@1)
!Read 7 readings from ch 1
Enter statement
!Enter readings into the computer