09-06-2006 03:00 PM
09-07-2006 04:21 AM
09-07-2006 02:21 PM
Thank you for the response and example program.
In my application, I put the DAQmx Timeing (Sample Clock).vi and DAQmx Start Task.vi outside the For loop. Even I set up multiple channle inputs, I only got one channel output. If I move those two VIs into the For loop, probably multiple channel data will be collected. But it does not make sense use Start Task.vi for every loop. Any ideas I can get multiple channel input data? Thank you very much.
09-07-2006 10:09 PM
Go to Find Examples>>Hardware input output>.DAQmx>>Analog measurements>>Temeprature>>Cont Acq Thermistor Samples-Int Clk.vi
Refer to this VI, it will work for multiple channels.
Also in picture attached I have shown how you can select the type of data that you want 'DAQmx read' to give out.
any doubts, do ask
Regards
Dev
09-08-2006 07:41 AM
Thank you for your response again.
I used exactly the same diagrom as you mentioned here. I think my problem is in the For loop. The DAQmx Create Channel (AI-Temperature-Thermistor-Iex).vi is in the For loop. The Task out signal is wired to Task in DAQmx Timing.vi through the tunnel. If I disable the indexing of the tunnel, only the last sensor channel is passed to the next vi block. If I enable the indexing, there is broken wire. Hope this clearify my problem. Thanks for any comments.
09-08-2006 11:59 AM
If you replace the tunnel for the DAQmx task with a shift register it will, in effect, remember all of the channels that you are creating. The DAQmx task will be wired similarly to the way the error cluster is wired in the For Loop, as seen in the Thermistor_create channel.PNG above.
Have a great day,
Brian P.
09-08-2006 03:38 PM
09-10-2006 10:46 PM - edited 09-10-2006 10:46 PM
Brian: If you replace the tunnel for the DAQmx task with a shift register it will, in effect, remember all of the channels that you are creating.
Brian,
Even without using a shift Register for the Task in/Task out, your task will get updated for the new channel, in each iteration of for loop.
The shift regiser is not required.
Diageng,
looks like so intepretation/understanding of 'DAQmx Read's data by you is incorrect
Do attach a snapshot of your block diagram / post your VI so that we can suggest better.
Regards
Dev
Message Edited by devchander on 09-10-2006 10:50 PM
09-11-2006 09:23 AM
Attached is part of my program. As I mentioned in the past, I only got one channel of data collected in the While loop.
In addition, if I increase my sampling rate, the memory will overflow after running a period of time, since the data cannot be read out before new data come in. The message suggested to increase the buffer size. I cannot find a terminal for buffer size. How do I do that? Thanks a lot for the help.
09-11-2006 12:06 PM