You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently it does not seem to be possible to change the sensor type with the ulAISetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long configValue) function.
The only way I found to set it is to use a VM with Windows, and change the config with InstaCal.
To try this, I set all the channels as Thermocouple in InstaCal, then I use this code to set some channels as RTD SCT_3_WIRE:
if (ulAISetConfig(daqDeviceHandle[devN], AI_CFG_CHAN_TYPE, i, AI_RTD) !=0)
{
printf("Failed to set up channel temperature type.\n");
return-1;
}
if (ulAISetConfig(daqDeviceHandle[devN], AI_CFG_CHAN_SENSOR_CONNECTION_TYPE, i, rtdType[devN]) !=0)
{
printf("Failed to set up channel temperature type.\n");
return-1;
}
Neither of those call trigger any errors, but when reading the channel I get the error 85: ERR_OPEN_CONNECTION and get the result -9999.
If I use those config but wire a thermocouple it works.
Am I doing anything wrong?
Edit: The code block above is used to configure different devices and channels. devN is the device number and i is the channel number.
The text was updated successfully, but these errors were encountered:
Weird, even weirder that such a big, and known issue has not been corrected by now. I mean the fact that the USB-Temp can only be configured with InstaCal.
Apparently it does not seem to be possible to change the sensor type with the
ulAISetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long configValue)
function.The only way I found to set it is to use a VM with Windows, and change the config with InstaCal.
To try this, I set all the channels as Thermocouple in InstaCal, then I use this code to set some channels as RTD SCT_3_WIRE:
Neither of those call trigger any errors, but when reading the channel I get the error 85: ERR_OPEN_CONNECTION and get the result -9999.
If I use those config but wire a thermocouple it works.
Am I doing anything wrong?
Edit: The code block above is used to configure different devices and channels.
devN
is the device number andi
is the channel number.The text was updated successfully, but these errors were encountered: