LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set sampling rate in analog data myRIO?

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

0 Kudos
Message 1 of 6
(5,605 Views)

Hi,

 

You can set the sampling rate by controlling the loop time/rate of your FPGA loop which reads data from the RIO channels

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 2 of 6
(5,575 Views)

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?

 

 

0 Kudos
Message 3 of 6
(5,534 Views)

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

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 4 of 6
(5,529 Views)

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

 

0 Kudos
Message 5 of 6
(5,525 Views)

yes,you have to use FPGA mode. To start,go through some of the examples from Help>>Find Examples in labview

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 6 of 6
(5,523 Views)