
Digitizer Application Information
37
RAMP.C
Use the internal level trigger to trigger off of an input ramp signal as it
crosses zero. This program takes pre-trigger readings as well as post trigger
readings.
SCPI COMMANDS IN THIS PROGRAM:
*RST
reset the digitizer
*CLS
clear the status system
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 50e-6
set sample interval to 50 µS
TRIG:SOUR INT1
set trigger source to a level on
channel 1
TRIG:LEV1 0
set the trigger level to 0V
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
Display the readings.
Comments
•
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, these
commands are redundant.
EXT_TRIG.C
Use an external trigger input at the D-connector “Trig” input to trigger
readings.
SCPI COMMANDS IN THIS PROGRAM:
*RST
reset the digitizer
*CLS
clear the status system
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 µS
TRIG:SOUR EXT
set trigger source to EXTernal
(requires an external input to the
“Trig” pin on the front panel
D-connector)
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
Display the readings.
Summary of Contents for E1563A
Page 8: ......
Page 24: ...24 Digitizer Module Set up ...
Page 84: ...84 Digitizer Command Reference ...
Page 110: ...110 ...
Page 138: ...138 HP E1563A and E1564A Register Based Programming Appendix B ...
Page 156: ...156 HP E1563A and E1564A Verification Tests ...