01-14-2016 05:52 PM
Measure voltage and temperature simultaneously at same time. However, when I put voltage and temperature in one loop, the voltage acquisition is delayed significantly. When I put voltage and temperature in two different loop, none of them works. There is an example in Labview help as shown. Does this structure work fast enough? Morever, how can a get volgate and temperatue from Analog DBL 1Chan 1Samp? I check the exported excel, the first column is 0, 1 the second column is voltage value, temperatue value. I wonder how can I get this two values for every scan.
,
Solved! Go to Solution.
01-14-2016 06:04 PM
You do a read N Channels 1 Sample with your DAQmx Read. That will give you data from both channels.
01-14-2016 06:19 PM
01-14-2016 08:09 PM
Index Array
01-18-2016 06:47 AM
Thanks crossrulz.
But my question is that I want to read temperature and voltage separately. The above picture I put here is to read voltage and temperatuer in one task. So I only can read voltage and temperatue simultaneously. But I want to read temperature when voltage reaches zero. So do you think it is possbile?
Regards
01-18-2016 08:05 AM
What's wrong with sampling them together? So you use Index Array to get your two channels' data. When the voltage is 0, do whatever it is you want to with the temperature data.
01-18-2016 08:21 AM
What I want to do is that when voltage is 0, I want to wait 100 us to acquire temperature. If I put voltage and temperature acquisition into one task, temperature I can get is the point that voltage is 0. Do you think I can acquire temperature after 100 us when voltage is 0.
Thanks!
01-18-2016 08:48 AM
Assuming that DAQ card can handle it, you can set up an analog trigger for the voltage channel. Then you just sample X samples to get your 100us worth of data. Keep the last sample.
01-18-2016 09:54 AM
Thanks crossrulz I will try to do that.