From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-05-2024 06:50 PM
Hello,
I have sensors that I read using the AI Voltage functionality from the Create Channel tool.
However, I also need to read a thermocouple output, which is done using the AI Temp TC option.
I am using subVIs to read these sensors in my main VI.
Individually, they work great, but when used together, I always encounter the following issue:
Error -50103 occurred at DAQmx Start Task.vi: 7220001
Possible Reason(s): The specified resource is reserved. The operation could not be completed as specified.
The structure of my subVIs is the same as below for both readings.
The error always occurs at the end of the second DAQmx Start Task.
Do you have any ideas on how to resolve this issue?
Thank you : )
08-05-2024 07:08 PM
Yes, in most NI DAQs it is expected.
In most NI DAQs, you can have only one hardware timed DAQmx Task of Analog Input type. This means, any number of channels you wish to acquire must be part of this one DAQmx Task.
In your case, since the first DAQmx Task used up the available one DAQmx task resource, there is none remaining for the second task to use and hence the error "resource is reserved".
If you want to read temperature from more than one TC, list the Physical channels as comma separate and run.
08-05-2024 11:07 PM
Thank you, that is good to know !
Actually, I am using only one thermocouple, and my other sensor is a load cell that provides six analog voltage outputs.
If I read the voltage from my thermocouple instead of using the AI Temp TC option, how can I convert the voltage back to the temperature value ?
08-06-2024 12:49 AM
Hi Paskal,
@PaskalM wrote:
If I read the voltage from my thermocouple instead of using the AI Temp TC option, how can I convert the voltage back to the temperature value ?
There are tables for each kind of thermocouple.
There are (estimation) formulas for each kind of thermocouple to convert voltage to temperature…
LabVIEW comes with a ready-to-use conversion VI.
Which DAQ device do you use? Does it come with a CJC?
08-06-2024 06:10 AM
You can combine multiple channels in a single task.
See Easily Synchronize and Trigger NI-DAQmx with Channel Expansion
08-06-2024 09:45 AM
Thank you ! I didn't know about this VI for converting voltage to temperature.
However, since I’m unsure what to specify for the CJC voltage, I’m getting weird temperature values compared to when I use the AI Temp TC. How can I determine the correct value to specify ?
I’m using this DAQ : NI PCIe-6363. How can I know if it comes with a CJC ?
08-06-2024 11:20 AM
Hi Paskal,
@PaskalM wrote:
I’m using this DAQ : NI PCIe-6363. How can I know if it comes with a CJC ?
By reading the manual and specsheet!
As the 6363 is a "generic" multifunction DAQ board it doesn't come with a CJC. Atleast it supports a ±0.1V input range…
08-06-2024 02:30 PM
We recently went through this issue: Temperature acquisition on NI USB-6259 - NI Community
Bottom Line - Multi-purpose DAQs can read thermocouples since they output a small voltage that relates to a temperature...
BUT, they are no match for a dedicated product like the 9211 series: NI-9211 - NI which use 24-bit ADCs with low noise pre-amps and built-in temperature compensation junction ICs. They also allow you to use the TC input modes of DAQmx making programming for them trivial.
If you only need one channel and can pay the price ($170), the little USB-TC01 is a great TC interface that has plug and play features.
If you MUST use your 6363 (which is a great DAQ for multi-purpose), you will have to create your own calibration curve and deal with more noise than you probably want. Look at my example code in the link above. It should work for the 6363 as well as it did with my little USB-6002.
08-06-2024 07:23 PM
Thank you, the USB-TC01 seems like an interesting option, maybe for another project. For now, I don't need super high precision; actually, ±5 degrees Celsius will be plenty enough for my purposes.
I thought about implementing the calibration formula, but it looked really ugly, and I couldn't believe no one had done it already, which is why I kept looking on internet.
But I cannot believe how it is possible to get reasonably good results using the AI Temp TC option for readings, compared to nothing conclusive from the conversion VI from LabVIEW.
I guess I will just look for the best linear approximation based on the VI you showed in the other conversation