LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i write only 1 sample each 0.5 second to my excel sheet

Solved!
Go to solution

This is the VI i'm working on...everything is running well but i get too many samples per second on my excel file...i just need 1 sample every 0.5 second...how can i solve this issue?

 

Thanks a lot

Jimmy
0 Kudos
Message 1 of 2
(2,005 Views)
Solution
Accepted by topic author GoncaloPT

The defaults on the DAQ Assistant are 100 samples aquired at 1 kHz, so every cycle you are getting 100 data points.  If you only want 2 points a second and software timing is acceptable, you could just wire "1" to the number of samples on the DAQ Assistant (or right-click and select Properties to configure the node) and use a timed loop or a software delay in the loop like "Wait until next ms multple".  Alternatively, you could use more advanced vis such as "DAQmx Read" to get the behavior you want.  Remember that the DAQ operation will return as soon as it gets the data you instructed it to capture, so you'll probably need something to keep things periodic between loop cycles unless you want to move to continuous hw timed DAQ operation.

Message 2 of 2
(1,984 Views)