Télécharger Imprimer la page

Keysight U2300A Serie Guide D'utilisation page 59

Masquer les pouces Voir aussi pour U2300A Serie:

Publicité

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 output
-> 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)
-> MEAS:DIG? (@501)
<- 23
Example 2:
-> CONF:DIG:DIR INP,(@501)
-> MEAS:DIG:BIT? 3,(@501)
<- 0
Keysight U2300A Series User's Guide
Features and Functions
// Configure the CH 502 to digital
output state
line at channels 502 to 1 instantly
// Query status of bit 4 of CH 502
//Configure the CH 501 to digital
output state
//To read back the digital value at
channel 501
3
59

Publicité

loading