Error Codes
Driver functions return a status code that indicates success or failure of the function call. A status code of zero (VI_SUCCESS) indicates success.
Driver-specific error codes are as follows:
Driver constant |
Hexadecimal value |
Description |
pipx40_ERROR_BAD_SESSION |
BFFC0800 |
No Pickering card is open on the session specified |
pipx40_ERROR_NO_INFO |
BFFC0801 |
Cannot obtain information for specified card |
pipx40_ERROR_CARD_DISABLED |
BFFC0802 |
Specified card is disabled |
pipx40_ERROR_BAD_SUB |
BFFC0803 |
Sub-unit value out-of-range for target card |
pipx40_ERROR_BAD_CHANNEL |
BFFC0804 |
Channel number out-of-range for target sub-unit |
pipx40_ERROR_NO_CAL_DATA |
BFFC0805 |
Target sub-unit has no calibration data to read/write |
pipx40_ERROR_BAD_ARRAY |
BFFC0806 |
SafeArray type, shape or size is incorrect |
pipx40_ERROR_MUX_ILLEGAL |
BFFC0807 |
Non-zero write data value is illegal for MUX sub-unit |
pipx40_ERROR_EXCESS_CLOSURE |
BFFC0808 |
Execution would cause closure limit to be exceeded |
pipx40_ERROR_ILLEGAL_MASK |
BFFC0809 |
One or more of the specified channels cannot be masked |
pipx40_ERROR_OUTPUT_MASKED |
BFFC080A |
Cannot activate an output that is masked |
pipx40_ERROR_FAILED_INIT |
BFFC080B |
Cannot open a Pickering card at the specified location |
pipx40_ERROR_READ_FAIL |
BFFC080C |
Failed read from hardware |
pipx40_ERROR_WRITE_FAIL |
BFFC080D |
Failed write to hardware |
pipx40_ERROR_VISA_OP |
BFFC080E |
VISA operation failure |
pipx40_ERROR_VISA_VERSION |
BFFC080F |
Incompatible VISA version |
pipx40_ERROR_SUB_TYPE |
BFFC0810 |
Incompatible with sub-unit type |
pipx40_ERROR_BAD_ROW |
BFFC0811 |
Matrix row value out-of-range |
pipx40_ERROR_BAD_COLUMN |
BFFC0812 |
Matrix column value out-of-range |
pipx40_ERROR_BAD_ATTEN |
BFFC0813 |
Attenuation value out-of-range |
pipx40_ERROR_BAD_VOLTAGE |
BFFC0814 |
Voltage value out-of-range |
pipx40_ERROR_BAD_CAL_INDEX |
BFFC0815 |
Calibration index value out-of-range |
pipx40_ERROR_BAD_SEGMENT |
BFFC0816 |
Segment number out of range |
pipx40_ERROR_BAD_FUNC_CODE |
BFFC0817 |
Function code value out of range |
pipx40_ERROR_BAD_SUBSWITCH |
BFFC0818 |
Subswitch value out of range |
pipx40_ERROR_BAD_ACTION |
BFFC0819 |
Action code out of range |
pipx40_ERROR_STATE_CORRUPT |
BFFC081A |
Cannot execute due to corrupt sub-unit state |
pipx40_ERROR_BAD_ATTR_CODE |
BFFC081B |
Unrecognised attribute code |
pipx40_ERROR_EEPROM_WRITE_TMO |
BFFC081C |
Timeout writing to EEPROM |
pipx40_ERROR_ILLEGAL_OP |
BFFC081D |
Operation is illegal in the sub-unit's current state |
pipx40_ERROR_BAD_POT |
BFFC081E |
Unrecognised pot number requested |
pipx40_ERROR_MATRIXR_ILLEGAL |
BFFC081F |
Invalid write pattern for MATRIXR sub-unit |
pipx40_ERROR_MISSING_CHANNEL |
BFFC0820 |
Attempted operation on non-existent channel |
pipx40_ERROR_CARD_INACCESSIBLE |
BFFC0821 |
Card cannot be accessed (failed/removed/unpowered) |
pipx40_ERROR_UNKNOWN |
BFFC0FFF |
Unspecified error |