From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to show daq readings every second but only save a reading every 10 minutes. Also want to save the date and time, at the same rate. Help needed

Solved!
Go to solution
Need to show daq readings every second  but only save a reading every 10 minutes, Help needed
Mensaje editado por Jondalar
0 Kudos
Message 1 of 3
(3,048 Views)
Solution
Accepted by topic author Jondalar

Are you also looking to sample the DAQ at 1 Hz? 

My approach would be to use the DAQ acquisition to time your loop displaying the reading each acquisition and then use the loop counter to control the logic of your file write.  For 1 Hz and a 10 minute write i would use "quotient and remainder" i / 600; if remainder= 0, then write data point.

 

For date and time, under Timing pallete use the Get Date/Time in seconds feeding a Format Date/Time to string.

0 Kudos
Message 2 of 3
(3,044 Views)

Randman Thanks for the solution, it works very well. I am also saving date and time vectors as well as the signal one.

Thanks again :manvery-happy:

0 Kudos
Message 3 of 3
(3,025 Views)