LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx 4 samples per second per channel

I have scxi 1102,with the new DAQmx assistant, my objective is to record analog input voltage on each channel (only five channels 0- 4) 4 samples of data per second per channel.
In DAQmx assistant: number of samples = 4, rate: 60hz, and in my while loop I put a delay of 15 msec.
Is this correct? is there a simple equation for setting the parameters?
Later on if I add one channel for collecting temperature. What do I need to change? (I know this has to be a different DAQmx assistant task, cannot combine with purely the above five analog inputs)
and later on if I add another set of 5 analog inputs voltage and one temperature. What do I need to change?
0 Kudos
Message 1 of 3
(2,716 Views)
Hi:

If you are using the DAQ Assistant, you should only specify 4 as the number of samples (it actually is number of samples per channel) and the frequency 1Hz.

Also if you are combining different analog input channels (voltage and temperature), it is best to use lower level VIs. In the example I have attached to this post, 5 analog input voltage channels are being scanned in addition to one temperature analog input channel. Please go over the block diagram to learn how you can mix different channel types. Of course do not hesitate to contact us if need additional help.

Regards,
Bharat Sandhu
Applications Engineer
National Instruments
Penny
Message 2 of 3
(2,716 Views)
Bharat
Thank you very much, it helps me a lot.
If I place the block diagram of the VI inside a while loop to continously acquire data and write to file.
Q1. Do I put a time delay inside the while loop?
If yes, msec?
Q2. Do I just place the DAQmx Start.Vi and the DAQmx Read.vi inside the while loop?
Again, really appreciate your answer.
0 Kudos
Message 3 of 3
(2,716 Views)