VXI VT1538A Reading Static Digital State, To set channels 40 through 43 to input digital states

Models: VT1538A

1 84
Download 84 pages 24.07 Kb
Page 18
Image 18
Reading Static Digital State

Reading Static Digital State

This means reading a channel’s current digital state when an algorithm executes. This is the default function assigned to all digital input channels after *RST and at power-up. To set individual channels to this function use the SCPI command [SENSe:]FUNCtion:CONDition (@<ch_list>). The value returned to an algorithm is a floating point representation of 0 or 1, depending on the state of the input signal and the channel’s INP:POL setting.

To set channels 40 through 43 to input digital states

*RST

SENS:FUNC:COND (@140:143)default for all dig inputs

ALG:DEF ’ALG1’,’ writecvt(I140,40); writecvt(I141,41); writecvt(142,42); writecvt(143,43);’

INIT do loop

SENSE:DATA:CVT? (@40:43) read 4 CVT values

end loop

Figure 8. Input Static Digital States

14 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP

Page 18
Image 18
VXI VT1538A user manual Reading Static Digital State, To set channels 40 through 43 to input digital states