xPCI-3200 API
|
Functions | |
_INT_ | i_PCI3200_GetOpenInputDiagnostic (HANDLE h_DeviceHandle, BYTE b_ModuleIndex, BYTE b_ChannelIndex, BYTE b_ConnectionType, PBYTE pb_Diagnostic) |
_INT_ | i_PCI3200_GetShortCircuitDiagnostic (HANDLE h_DeviceHandle, BYTE b_ModuleIndex, BYTE b_ChannelIndex, PBYTE pb_Diagnostic) |
_INT_ i_PCI3200_GetOpenInputDiagnostic | ( | HANDLE | h_DeviceHandle, |
BYTE | b_ModuleIndex, | ||
BYTE | b_ChannelIndex, | ||
BYTE | b_ConnectionType, | ||
PBYTE | pb_Diagnostic | ||
) |
Check the open input status of a sensor. This function is available for TC and RTD sensors.
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleIndex | Index of the module (0-3) |
[in] | b_ChannelIndex | Index of the channel (0-3) If b_ConnectionType is set to differential, then the value must be 0 or 1 (only 2 channels) |
[in] | b_ConnectionType | The type of the connection that is used (APCI3200_CONNECTION_TYPE_SINGLE for single-ended, and APCI3200_CONNECTION_TYPE_DIFFERENTIAL for differential) |
[out] | pb_Diagnostic | A pointer to a byte that will be filled with the diagnostic status. 0: no open input, 1: open input detected |
0 | : No error |
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : The b_ModuleIndex parameter is wrong |
-3 | : The b_ChannelIndex parameter is wrong |
-4 | : The b_ConnectionType parameter is wrong |
-5 | : Error while calling IOCTL function (wrong handle ?) |
-6 | : Error while reading the calibration gain value |
-7 | : Error while reading the calibration offset value |
-8 | : Error while reading the calibration values of the channel |
_INT_ i_PCI3200_GetShortCircuitDiagnostic | ( | HANDLE | h_DeviceHandle, |
BYTE | b_ModuleIndex, | ||
BYTE | b_ChannelIndex, | ||
PBYTE | pb_Diagnostic | ||
) |
Check the short circuit status of a sensor. This function is only available for RTD sensors.
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleIndex | Index of the module (0-3) |
[in] | b_ChannelIndex | Index of the channel (0-1) |
[out] | pb_Diagnostic | A pointer to a byte that will be filled with the diagnostic status. 0: no short-circuit, 1: short-circuit detected |
0 | : No error |
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : The b_ModuleIndex parameter is wrong |
-3 | : The b_ChannelIndex parameter is wrong |
-4 | : Error while calling IOCTL function (wrong handle ?) |
-5 | : Error while reading the calibration gain value |
-6 | : Error while reading the calibration offset value |
-7 | : Error while reading the calibration values of the channel |