Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to capture analog input into few chunks of data

I would read the analog input into few chunks of data. How do I do it? 

0 Kudos
Message 1 of 4
(3,307 Views)

Hello JimSi,

 

Can you please elaborate more on your question? From the image, I can see that you are running a finite acquisition, so you need to read all data back from the buffer at once. If you want to read smaller ‘’chunks’’ of data, then I would recommend using a continuous acquisition with Number of Samples per Channel wired into the DAQmx Read.vi. Take a look at the example Voltage – Continuous Input.vi given in the Example Finder under Hardware Input and Output>>DAQmx>>Analog Input.

 

Best Regards,

 

Alina M

0 Kudos
Message 2 of 4
(3,287 Views)

Alina,

I follow your instruction and make it work. Thanks.

Now I would output the few chunks of data. I encounter a problem. DAQmx only output the first chunk. 

thanks

0 Kudos
Message 3 of 4
(3,277 Views)

Hello JimSi,

 

Please take a look to the example Voltage – Continuous Output.vi in the Example Finder. In the While Loop, they are using a DAQmx Is Task Done?.VI to keep writing continuously. Which VI is the one writing once in the attached image?

 

Regards,

 

Alina M

0 Kudos
Message 4 of 4
(3,242 Views)