xPCI-3200 API
|
Functions | |
_INT_ | i_PCI3200_Read1Temperature (HANDLE h_DeviceHandle, BYTE b_ModuleIndex, BYTE b_ChannelIndex, BYTE b_SensorType, BYTE b_SensorModel, DOUBLE d_RtdResistance, BYTE b_Gain, BYTE b_ConnectionType, DWORD dw_ConversionFrequency, DOUBLE *pd_TemperatureValue) |
_INT_ | i_PCI3200_ReadMoreTemperature (HANDLE h_DeviceHandle, DWORD dw_ConnectionType[4], DWORD dw_ChannelMask[4], DWORD dw_SensorType[4], DWORD dw_SensorModel[4], DOUBLE d_RtdResistance[8], DWORD dw_Gain[4], DWORD dw_ConversionFrequency, DWORD dw_Interrupt, DWORD dw_Trigger, DOUBLE *pd_TemperatureValues) |
_INT_ | i_PCI3200_ReadMoreTemperatureTrigger (HANDLE h_DeviceHandle, DOUBLE *pd_TemperatureValue) |
_INT_ | i_PCI3200_ReadMoreTemperatureTriggerRelease (HANDLE h_DeviceHandle) |
_INT_ i_PCI3200_Read1Temperature | ( | HANDLE | h_DeviceHandle, |
BYTE | b_ModuleIndex, | ||
BYTE | b_ChannelIndex, | ||
BYTE | b_SensorType, | ||
BYTE | b_SensorModel, | ||
DOUBLE | d_RtdResistance, | ||
BYTE | b_Gain, | ||
BYTE | b_ConnectionType, | ||
DWORD | dw_ConversionFrequency, | ||
DOUBLE * | pd_TemperatureValue | ||
) |
Read the temperature of a connected sensor.
[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_SensorType | The type of the sensor connected (ADDIDATA_THERMOCOUPLE for TC sensors, ADDIDATA_RTD for RTD sensors) |
[in] | b_SensorModel | The model of the sensor. If b_SensorType is ADDIDATA_THERMOCOUPLE :
|
[in] | d_RtdResistance | The resistance R0 of the RTD sensor. Set it to 0 if you do not use RTD sensor. R0 is the resistance of your sensor for a temperature of 0 Celcius |
[in] | b_Gain | The gain you want to use.
|
[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) If b_SensorType is RTD, b_ConnectionType must be set to APCI3200_CONNECTION_TYPE_DIFFERENTIAL |
[in] | dw_ConversionFrequency | The frequency of conversion (20Hz, 40Hz, 80Hz or 160Hz) |
[out] | pd_TemperatureValue | A pointer on a value that will be filled with the measured temperature (in Celcius) |
0 | : No error |
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : The b_ModuleIndex parameter is wrong |
-3 | : The b_SensorType parameter is wrong |
-4 | : The b_ConnectionType parameter is wrong |
-5 | : b_SensorType is set to ADDIDATA_RTD, but the connection type is not set to APCI3200_CONNECTION_TYPE_DIFFERENTIAL |
-6 | : The b_ChannelIndex parameter is wrong |
-7 | : The dw_ConversionFrequency parameter is wrong |
-8 | : The b_Gain parameter is wrong |
-9 | : Error while calling IOCTL function (wrong handle ?) |
-10 | : Error while reading the calibration gain value |
-11 | : Error while reading the calibration offset value |
-12 | : Error while reading the calibration values of the channel |
-13 | : Error while reading the CJC value |
-14 | : Error while reading the CJC gain value |
-15 | : Error while reading the CJC offset value |
-16 | : Error while computing the temperature of the CJC |
-17 | : Error while computing the TC-X value of the CJC |
-18 | : Error while computing the temperature -19 : Sensor model is wrong |
-20 | : Error while computing the RTD temperature |
-30 | : The b_SensorType parameter is wrong |
-100 | Failed to read Eeprom |
_INT_ i_PCI3200_ReadMoreTemperature | ( | HANDLE | h_DeviceHandle, |
DWORD | dw_ConnectionType[4], | ||
DWORD | dw_ChannelMask[4], | ||
DWORD | dw_SensorType[4], | ||
DWORD | dw_SensorModel[4], | ||
DOUBLE | d_RtdResistance[8], | ||
DWORD | dw_Gain[4], | ||
DWORD | dw_ConversionFrequency, | ||
DWORD | dw_Interrupt, | ||
DWORD | dw_Trigger, | ||
DOUBLE * | pd_TemperatureValues | ||
) |
Read more temperature function allows to read several channels of the board.
[in] | h_DeviceHandle | Handle of the board |
[in] | dw_ConnectionType | ConnectionType for each module to read (if module not used, don't have to be set)
|
[in] | dw_ChannelMask | Channel mask for one module. (Example dw_ChannelMask[0] = 0x4 to read module 0 channel 2)
|
[in] | dw_SensorType | The type of the sensor connected for each channel to read
|
[in] | dw_SensorModel | The model of the sensor
|
[in] | d_RtdResistance | The resistance R0 of the RTD sensor. Set it to 0 if you do not use RTD sensor. |
[in] | dw_Gain | Gain for each channel by module
|
[in] | dw_ConversionFrequency | Conversion frequency for each channels
|
[in] | dw_Trigger | Enable / Disable software trigger
|
[in] | dw_Interrupt | Enable / Disable interrupt
|
[in] | pd_TemperatureValues | Table with all temperature values in module and channel order. This table depends on dw_ChannelMask parameter
|
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : The dw_ConversionFrequency parameter is wrong |
-3 | : The dw_Interrupt parameter is wrong |
-4 | : The dw_Trigger parameter is wrong |
-5 | : The dw_ConnectionType parameter is wrong |
-6 | : One module is already initialized for read more |
-7 | : One module is already initialized for scan |
-8 | : The dw_ChannelMask parameter is wrong |
-9 | : The dw_SensorType parameter is wrong |
-10 | The dw_Gain parameter is wrong |
-11 | The dw_ChannelMask cannot be equal to 0 |
-12 | Failed to get board value |
-13 | Error while calling IOCTL function (wrong handle ?) |
-14 | Interrupt routine is not set |
-100 | Failed to read Eeprom |
_INT_ i_PCI3200_ReadMoreTemperatureTrigger | ( | HANDLE | h_DeviceHandle, |
DOUBLE * | pd_TemperatureValue | ||
) |
Allows to run the last read more acquisition without reading all parameters again, only channels values are read again. In i_PCI3200_ReadMoreTemperature function dw_Trigger parameter must be set to 1 in order to use this function.
[in] | h_DeviceHandle | Handle of the board |
[out] | pd_TemperatureValue | Temperature values corresponding to dw_ChannelMask from i_PCI3200_ReadMoreTemperature function |
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : Error while calling IOCTL function (wrong handle ?) |
-3 | : Trigger was not activated in i_PCI3200_ReadMoreTemperature function |
-4 | : An acquisition is already running |
_INT_ i_PCI3200_ReadMoreTemperatureTriggerRelease | ( | HANDLE | h_DeviceHandle | ) |
Release the acquisition started by i_PCI3200_ReadMoreTemperature function with trigger selected
In i_PCI3200_ReadMoreTemperature function dw_Trigger parameter must be set to 1 in order to use this function.
[in] | h_DeviceHandle | Handle of the board |
-1 | : The h_DeviceHandle parameter is wrong |
-2 | : Error while calling IOCTL function (wrong handle ?) |
-3 | : Trigger was not activated in i_PCI3200_ReadMoreTemperature function |