unsigned long PIPLX_PsuInfo (long session, unsigned long cardNumber, unsigned long outputSubunit, unsigned long *typeNumber, double *voltage, double *current, unsigned long *precision, unsigned long *capabilities);
Obtains a description of a power supply sub-unit, as numeric values.
Power supply sub-unit type code is: 9 - TYPE_PSUDC (DC power supply)
Capability flag bit definitions:
0x00000010 - PSU_CAP_CURRENT_MODE_SENSE (can sense if operating in current-limited mode)
0x00000008 - PSU_CAP_PROG_CURRENT (output current is programmable)
0x00000004 - PSU_CAP_PROG_VOLTAGE (output voltage is programmable)
0x00000002 - PSU_CAP_OUTPUT_SENSE (has logic-level sensing of output active state)
0x00000001 - PSU_CAP_OUTPUT_CONTROL (has output on/off control)
Certain driver functions are only usable with sub-units having appropriate capabilities - examples being:
PIPLX_PsuEnable
PIPLX_PsuSetVoltage
Input | ||
Name | Type | Description |
session | long |
Handle of current session. |
cardNumber | unsigned long |
Card number. |
outputSubunit | unsigned long |
Subunit number. |
Output | ||
Name | Type | Description |
typeNumber | unsigned long (passed by reference) |
Type code. |
voltage | double (passed by reference) |
Rated voltage (in Volts). |
current | double (passed by reference) |
Rated current (in Amps). |
precision | unsigned long (passed by reference) |
Precision (in bits, meaningful only for programmable supplies). |
capabilities | unsigned long (passed by reference) |
Capability flags. |
Name | Type | Description |
return | unsigned long |
Zero for success, or no-zero error code. |
Power Supply
Client Bridge for LXI - Base module
Alphabetical Function Index
Hierarchical Function Index