SCPI Programming Examples
Analog input
Example 1:
// Digital trigger with delay trigger type
// Supply Digital trigger signal to EXTD_AI_TRIG
-> ACQ:POIN 1000
-> ACQ:SRAT 1000
-> TRIG:SOUR EXTD
-> TRIG:DTRG:POL POS
-> TRIG:TYPE DEL
-> TRIG:DCNT 225000000
-> WAV:STAT?
<- EMPT
-> WAV:COMP?
<- YES
-> DIG
-> WAV:STAT?
<- FRAG
-> WAV:COMP?
<- NO
// Wait for trigger
// Five seconds delay after the trigger event
-> WAV:STAT?
<- DATA
-> WAV:COMP?
<- YES
<- WAV:DATA?
<- #800002000
<byte><byte>...
Keysight U2300A Series User's Guide
Features and Functions
// For "DIG" mode
// Digital Trigger
// Count value ~= 5 s
// Start single-shot acquisition
// To check acquisition completion for DIG
// Raw data returned by DAQ
3
75