LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am writing to a file, but i would like to kind of backup the data after x amount of days, or something like that, to prevent the file from becoming to big.


2ndly.. 2ndly, i am reading values from a card, and then displaying them on a digital indicator, as well as on a graph, and i write it to a spreadsheet file. i would like to reduce the frequency that the values are printed on the graph, and those that are written to file.
However, i would like not to change the frequency of the data to the digital indicator.
0 Kudos
Message 1 of 5
(2,881 Views)
Well, for you could use your while loops iteration terminal to do both issues. For the first, decide how many aquisitions you want to have in each file, then, use "quotient and remainder" function under numeric function palette to divide the iteration terminal value by this, then everytime the remainder is zero, change your filename from "filename.*" to "filename-1.*". For the second do the same, with a smaller value, let's say 3, and everytime remainder is zero pass data to your graph, or else.
Hope this helps
0 Kudos
Message 2 of 5
(2,881 Views)
i think this will just start writing to a different file everytime. Could you show me an example thereof? thanks
0 Kudos
Message 3 of 5
(2,881 Views)
If you want to just empty your data array and write all your data to the same file, when remainder is zero, set a case structure that will write to spreadsheet (with append to file true) and wire the output of the array with an empty one. in the false case, just continue passing the array of data without modifications.
0 Kudos
Message 4 of 5
(2,881 Views)
Hi Matrix,
you could use two while loops running in parallel and syncronized by occurrence functions.
In a loop containing your acquisition you generate an occurrence at a determined number of acquisitions.
The second loop displays data on chart and save them only when an occurrence is set.

I enclose a sample vi that acts as I explained.

Let me know if you need more help.

Regards,
Alberto
0 Kudos
Message 5 of 5
(2,881 Views)