LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data every day in new file

Hello,

I've created an application that runs continuously. Sometimes it generates a data (string) and I want to save it in a file. All data of one day are saved in one unique file. The next day the data generates are saved in another file. Every day the application generates a new path.

I'm using open, write and close functions I/O and I'm using a subVI that when the application generates the new path close the reference and  open file with the new path. In this moment occurrs an error (Error 1 occurred at Write File in save.vi).

Also when I run the vi... why it ask me the file to save it (at the begining)  when the function have connected "open or create"?

Thank you.


vicen

LV7.1 / WinXP
0 Kudos
Message 1 of 3
(2,712 Views)

Hi vicens,

connect your path to the file path input, not to the start path input. I have tested it with LV8.5, maybe there are differences.

Mike

0 Kudos
Message 2 of 3
(2,709 Views)
Thank you, Mike,

also, I've solved the error. I needed to create another sifht register to refnum!
0 Kudos
Message 3 of 3
(2,703 Views)