Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to writing the data into the file at the same frequency of data acquisition using myRIO

Hi everyone,

 

I have a question regarding data acquisition fequency and data recording frequency of myRIO. Hope you guys can help me out.

 

Basically, I want to acquire voltage input at analog input 0 at the frequency of 1kHz and then write the data into a file (tdms format). 

 

However, I always found there were only 55 or 56 data points recorded every second in the data file (see the excel sheet). 

 

To confirm my data acquisition was performed at the correct frequency, I added a small function in the main loop to indicate the time spent between two acquisition events. 

 

To my surprise, the period of data acquistion is correct (1ms or 1kHz) but there are only 55 or 56 data point per second recorded in the data file.

 

How can I record every data point acquired by the analog input?

 

Thank you!

 

P.S. I am very new to myRIO. How can I manually set the system time for myRIO? The default time of my myRIO is wrong. 

 

Best,

Tengyang

 

0 Kudos
Message 1 of 1
(5,131 Views)