08-12-2019 02:41 AM
Dear all,
when I'm trying to read measurement values from thermocouples and pressure sensors (voltage input signal), the pressure values would be 1 to 1.2 seconds delayed. The thermocouples, however, are responding to changes immediately.
Does it have to do with the two VIs for starting a task that I put in series (This is necessary as I can't define a conversion including an exponential function)? The sample rate was set to 10/s.
Best
Sebastian
08-12-2019 04:10 AM
Hi Sebastian,
you can simplify the expression node like this:
(The LabVIEW help explains how to calculate the power of numbers!)
Does it have to do with the two VIs for starting a task that I put in series
When you are talking about those DAQmxCreateVirtualChannel functions: no, it doesn't matter how many channels you configure before the DAQmxStart function. (Atleast not for a delay of >1s.)
08-14-2019 03:07 AM
Thanks GerdW,
I'm not quite sure how I can simplify the node. But anyway, even removing the note does not eliminate the time delay.
The time delay is, however, not observable if I remove the thermocouple acquisition. Any idea on that?
Best,
Sebastian
08-14-2019 03:09 AM - edited 08-14-2019 03:17 AM
Hi Sebastian,
thermocouples are (usually) read at a very low sampling rate.
Can you verify/check that you are reading them at the expected sampling rate?
Your NI9214 only supports 68S/s aggregated sample rate! And that DAQmx task is configured containing 3 modules with 40 thermocouples…
08-14-2019 03:18 AM
Thanks GerdW,
does an aggregated sample rate of 68 S/s mean that I can acquire 68 Signals per second for the whole module? So in case of 10 thermocouples per module, 6.8 signals per second maximum? And in case of 40 TCs in 3 modules 204/40 = 5.1 signals per second?
Best,
Sebastian
08-14-2019 03:35 AM - edited 08-14-2019 03:39 AM
Hi Sebastian,
does an aggregated sample rate of 68 S/s mean that I can acquire 68 Signals per second for the whole module? So in case of 10 thermocouples per module, 6.8 signals per second maximum?
Yes. And with 16 TC connected to your module you only get 4.25 S/s/ch!
The module is able to read 68 samples per second. With just one channel you get 68S/s/ch, with 7 channels you are down to ~10S/s/ch…
And in case of 40 TCs in 3 modules 204/40 = 5.1 signals per second?
I'm not sure how DAQmx handles the 3 modules in the task.
But I guess it will be limited by the slowest module in the task, so you should get 68/16 = 4.25 S/s.
(You may distribute your TCs on your modules like 13+13+14 to yield an effective sample rate of 68/14 = 4.86S/s - an improvement of 14%…)
08-14-2019 05:59 AM
Hi Gerd,
this is such a good help, thank you Gerd.
Indeed, if I reduce the number of thermocouples to two, there's no delay in the pressure readings anymore.
Unfortunately it does not work to to set the thermocouple sample rate to 1/s and the pressure sensor sample rate to 10/s - in this case there's the delay again.
Best,
Sebastian
08-14-2019 07:13 AM
08-20-2019 01:00 AM
Hi Gerd,
according to your suggestion I set up one loop for temperature value acquisition running with 1 Hz and a seperate one for pressure value acquisition running at 10 Hz. This still gave me a delay of about 1 s in the pressure values until I triggered both tasks to start reading at the same time, which finally solved the problem.
Thanks again and best regards,
Sebastian
08-20-2019 01:13 AM
Hi Sebastian,
glad you found a solution.
Be aware of possible problems when running your VI for long-time measurements! As the modules use different timebases their samplerates might differ from selected 1Hz/10Hz slightly (like 0.999Hz/10.002Hz), so you might notice small "delays" for long measurement campaigns.