LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to save data to a file at one rate and display data at another rate are their any examples that show this?

Can anyone show me how this is done I have tried different loops but have failed.
0 Kudos
Message 1 of 5
(6,732 Views)
Can you post your vi to explain further what you are attempting to do? Also check the links below for relevant information.

http://zone.ni.com/devzone/devzone.nsf/new
http://search.ni.com/query.html?col=alldocs&qp=%2Bcontenttype%3AExample&lk=1&qt=&layout=Example
0 Kudos
Message 2 of 5
(6,732 Views)
I want to read data on front panel every second then I want to save this data to a file every 1 hour.VI attached.
0 Kudos
Message 4 of 5
(6,732 Views)
Assume that you have any 1-d signal that you want save it to file with sampling rate 12Hz and show it with sampling rate 5Hz (for example).
First of all sample signal with rate 60Hz (minimal number that divided by 12 and 5). Now you have 1-d array of samples. Use for example "For" cycle with indexing where take every 5-th sample for showing and take every 12-th sample to saving.
0 Kudos
Message 3 of 5
(6,732 Views)
The code you posted shows that you are on the right track. The example you posted I would guess appears to run, but every sample is the same. Yes? To fix this problem move the acquisition VI inside the loop.

To be able to view data from the same source, but at a differenct rate, make a copy of this VI (after fixing it of course), remove the file IO stuff and substitute a strip chart. You should be able to run the two VI at the same time with no problems.

Mike...

BTW: you should be aware that viewing and storing data at different rates has the potential of being confusing to operators because the possibility exists that something could appear in the graph that isn't saved in the file--and vice versa.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(6,732 Views)