ViStatus pipx40_operateSwitch (ViSession instrumentHandle, ViUInt32 subunitNumber, ViUInt32 switchFunction, ViUInt32 segmentNumber, ViUInt32 switchNumber, ViUInt32 subswitch, ViUInt32 switchAction, ViPBoolean state);
For matrix sub-units having auto-isolation and/or auto-loopthru features; sets (optionally) and reads the state of an individual switch, supporting customized modes of operation for applications such as fault diagnostics.
Please consult the pipx40 driver programming manual for a complete description of the use of this function.
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.
|
switchFunction | ViUInt32 |
A code indicating the functional group to which the switch belongs.
|
segmentNumber | ViUInt32 |
The number of the segment in which the switch is located. |
switchNumber | ViUInt32 |
The logical number of the switch.
|
subswitch | ViUInt32 |
The number of the subswitch to access.
|
switchAction | ViUInt32 |
A code indicating the switch action to be performed.
|
Output | ||
Name | Type | Description |
state | ViBoolean (passed by reference) |
Variable to receive the state of the chosen switch (after performing the specified action).
|
Name | Type | Description |
status | ViStatus |
A numeric code indicating the success or failure of the operation.
|
Specialised Switching
Pickering Interfaces PXI VISA
Alphabetical Function Index
Hierarchical Function Index