ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquire data on demand

Hi,

Can anyone give me a suggestion or point me in the direction of an example that shows how to acquire data to a spreadsheet file on demand? I want to be able to sample data at, say, 10Hz and save the data at, say, 0.5Hz. Also, I want to be able to just push a button to be able to start to acquire the data, I don't want it to start right away when the program starts.

Thanks.
0 Kudos
Message 1 of 4
(3,277 Views)
hello,

take a look at the attached VI.
maybe it fits your application.

regards
0 Kudos
Message 2 of 4
(3,265 Views)
This is close to what I need... But I don't think with your code you can adjust the sample record rate. ie: I want the sampling rate to be at 10Hz but I want to log only every 0.5Hz, for example...
0 Kudos
Message 3 of 4
(3,253 Views)
Hi sunny dee-

In order to log your data only every few iterations you will need to save data from several iterations and then write all of the data to a file on every Nth iteration.

I have attached a VI that logs random numbers to file- you should be able to use this concept and use your acquired data instead. You should be able to implement something similar to this in your main while loop.

Thanks-

Message Edited by Tom W. on 05-20-2005 12:52 PM

Tom W
National Instruments
0 Kudos
Message 4 of 4
(3,245 Views)