pipx40_getChannelState

 

VB

Function

pipx40_getChannelState (ByVal vi As Long, ByVal subUnit As Long, ByVal channel As Long, ByRef state As Integer) As Long

C++

ViStatus

pipx40_getChannelState (ViSession vi, ViUInt32 subUnit, ViUInt32 channel, ViPBoolean state);

 

Parameter

I/O

Description

vi

in

Instrument handle

subUnit

in

Numeric variable indicating in which sub-unit actions will take place

channel

in

Channel whose state is to be reported

state

out

Pointer/reference to variable to receive result

Return Value

0 = Successful operation. Negative values are error codes and positive values are warnings. To get a description of the error, pass the error code to pipx40_error_message.

Description

Reads the current state of the specified output channel (VI_OFF = open or logic '0', VI_ON = closed or logic '1').