pipx40_getChannelState

ViStatus pipx40_getChannelState (ViSession instrumentHandle, ViUInt32 subunitNumber, ViUInt32 channelNumber, ViPBoolean state);

Purpose

Obtains the state of an individual output channel.

Parameters

Input
Name Type Description
instrumentHandle ViSession

Instrument handle obtained by the pipx40_init call used to open the card.

subunitNumber ViUInt32

The number of the sub-unit to access.
Valid Values:  1 thru the number of output sub-units
available on the chosen card

channelNumber ViUInt32

The number of the individual output channel of the chosen sub-unit to be queried.
Valid Values:  1 thru the number of outputs available on the
chosen sub-unit

Output
Name Type Description
state ViBoolean (passed by reference)

Variable to receive the chosen channel's state.
Values:        VI_OFF = channel inactive or logic '0'
VI_ON  = channel active or logic '1'

Return Value

Name Type Description
status ViStatus

A numeric code indicating the success or failure of the operation.
VI_SUCCESS = Successful operation.
Negative values are error codes and positive values are warnings.
To get a description of an error, pass the error code to pipx40_error_message.

References

Switching and GP Output
Pickering Interfaces PXI VISA
Alphabetical Function Index
Hierarchical Function Index