01-25-2018 03:48 AM
Hello everyone
I am trying to write a new file every day but what is happening is that every new file has the new data as well as the previous day's data. How do I stop that?
01-25-2018 04:39 AM
hard to tell from a picture that is missing half.
please clean up your vi (no stuff over things, no wires going backwards,...) and attach it.
regards
01-25-2018 04:56 AM
Make sure you empty the Data array after you've written it to file.
/Y
01-25-2018 09:28 AM - edited 01-25-2018 09:37 AM
To begin with you are going to need a proper program architecture, not one big loop.
Sounds complicated but if you were using a proper architecture like a state machine this is trivial to add.
See my post in this thread https://forums.ni.com/t5/LabVIEW/Automatic-save-and-create-new-file-everyday/m-p/3608974 for an example of what I am saying.