xPCI-3200 API
xPCI-3200 Diagnostic functions

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)
 

Detailed Description

Function Documentation

_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.

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleIndexIndex of the module (0-3)
[in]b_ChannelIndexIndex 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_ConnectionTypeThe type of the connection that is used (APCI3200_CONNECTION_TYPE_SINGLE for single-ended, and APCI3200_CONNECTION_TYPE_DIFFERENTIAL for differential)
[out]pb_DiagnosticA pointer to a byte that will be filled with the diagnostic status. 0: no open input, 1: open input detected
Return values
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.

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleIndexIndex of the module (0-3)
[in]b_ChannelIndexIndex of the channel (0-1)
[out]pb_DiagnosticA pointer to a byte that will be filled with the diagnostic status. 0: no short-circuit, 1: short-circuit detected
Return values
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