U2300A Series USB DAQ User's Guide
The SCPI programming examples below will help you to
configure the DIO and read a digital channel.
Configure the digital channel as OUTPUT and check the digital
data
Example 1:
-> CONF:DIG:DIR OUTP,(@501)
-> SOUR:DIG:DATA 123,(@501)
-> SOUR:DIG:DATA? (@501)
<- 123
Example 2:
-> CONF:DIG:DIR OUTP,(@502)
-> SOUR:DIG:DATA:BIT 1,4,(@502) // To set the data bit 4 digital
-> SOUR:DIG:DATA:BIT? 4,(@502)
<- 1
Configure the digital channel to INPUT and read back the value
Example 1:
-> CONF:DIG:DIR INP,(@501) //Configure the CH 501 to digital
-> MEAS:DIG? (@501)
<- 23
Features and Functions
// Configure the CH 502 to
digital output state
output line at channels 502 to
1 instantly
// Query status of bit 4 of CH
502
output state
//To read back the digital value at
channel 501
3
59