Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analogue Data Logger at Higher than 1kHz

Hi, I am trying to log data from three analogue sources, to a USB drive using the Myrio.  The current setup works with frequencies on the timed look up to 1kHz, any faster and the device no longer responds.  How can I increase the sample rate.  2kHz would be good, but ideally 8kHz.  I am new to myrio so am finding myself struggling with the timing elements.  Possibly move to fpga? if so, how do i go about doing this?

I have attached pictures of my code, sorry about the way they are laid out, my screen on my laptop is tiny.

 

Cheers,

 

Chris

Download All
0 Kudos
Message 1 of 3
(4,382 Views)

Dear enrcjone, 

What I like to recommed is to make use of the FPGA in this case. But you should be able to use it as it is with some modifications. I don't have the toolkit installed so I have not been able to try this out for the myRIO.    

To increase the speed on your code, have a look on the following link: 

http://digital.ni.com/public.nsf/allkb/D63AA7D635A2EF0186256D170075C9C3?OpenDocument 

I will also recommend you do use one instance of the Analog input ExpressVI instead of one for each analog input. See this clip:
https://www.youtube.com/watch?v=N6Mi-VjBlmc

For the Victory:
In general when you obtain data and like to log it to file, as you do, the prefered architechture will be a producer/consumer-model:


https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...
 

Best regards
Lars

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

Hi again, 

In addition, as you work on a myRIO (RT system) you will be able to change the loop timing source to a 1Mhz clock. You do this by dubble click on the timed loop frame. 

Regards

Lars

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