08-27-2015 04:51 AM
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
09-01-2015
03:24 AM
- last edited on
05-15-2025
10:47 AM
by
Content Cleaner
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
09-03-2015 09:25 AM
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