01-25-2017 04:10 AM
Hi,
I'm Adebah, I just want to know how can I set sampling rate in analog input myRIO?
It is because if I using DAQ, I able to set the sampling rate and rate Hz at analog input before running the program.
Kindly need help to solve this problem.
Thanks,
Adebah
01-25-2017 05:36 AM
Hi,
You can set the sampling rate by controlling the loop time/rate of your FPGA loop which reads data from the RIO channels
01-26-2017 12:15 AM
Hi,
Is it I need to use tick count? because before this I had been tried but still not work as well. Because I need to set sampling rate 1k. This means that I want to collect the analog data 1000 data in 1 second.
The figure below shows the simple program that had been made.
Is it I need to use timed loop fpga?
01-26-2017 12:39 AM
Hi Adebah,
Are you trying to use scan interface mode in MyRIO. You have to use FPGA mode to configure the timing. In the FPGA program you can control the timing using the tick count function. To read the data use a DMA(aka FIFO). You can then read DMA in your RT code.
Refer the following post to get a better idea.
http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/myRIO-sampling-rate/td-p/3207738
01-26-2017 01:07 AM
Hi Dja,
Thanks for your advice. In my case, I'm used myRIO as a module to detect the EMG signal produced from human muscle. I able to obtain the EMG signal but the sampling rate for the signal is not accurate where I only get 143 sample data in 30 seconds.
Should be I need to get 30,000 sample data in 30 seconds. Is it I still use FPGA to solve my problem?
Sorry for asking so many questions about this, I'm still a new user in myRIO.
Thanks,
Adebah
01-26-2017 01:30 AM
yes,you have to use FPGA mode. To start,go through some of the examples from Help>>Find Examples in labview