07-28-2021 08:51 AM
Hello friends,
I am saving my data in excel file using write measurment file of differnt sensor but when ever my PC restarts, Labview creates another file and save data in next file, i want that my VI should save data on first file after last data saved,
any one guid me how can i do that.
Thanks
asif
Solved! Go to Solution.
07-28-2021 09:13 AM
We cannot really help unless we know what the program does and how you are doing the file IO. (express VI, plain file tools, report generation, etc.)
Is the filename hardwired? Is it a "spreadsheet" file (plain ASCII delimited text) or an "excel" file (proprietary Microsoft format). Big difference!
With proper choices, You can always check if a certain file already exist and then open it for appending. Show us your code!
07-28-2021 09:24 AM - edited 07-28-2021 09:27 AM
@Asif138 wrote:
Hello friends,
I am saving my data in excel file using write measurment file of differnt sensor but when ever my PC restarts, Labview creates another file and save data in next file, i want that my VI should save data on first file after last data saved,
any one guid me how can i do that.
Thanks
asif
07-28-2021 05:41 PM
@RTSLVU wrote:
How about "Engineer Ambivalently"?
07-28-2021 10:45 PM
Thanks for your swift replay
here i attached code and excel file on which data is stored.
My PC set to restart every morning at 8:05am and data is stored daily twice at 8am and 8pm.
when PC starts , VI create new file and saved data in new file.
Thanks
asif
07-29-2021 12:58 AM
In the save express Vi you can select to append to file if the file exists. Have you tried that?
(why all the coercion dots? How exactly are you stopping the program?)
07-29-2021 09:22 AM
@billko wrote:
@RTSLVU wrote:
How about "Engineer Ambivalently"?
Oooo, I like that one too. 😛
Honestly the first time I saw NI's new slogan "Engineer Ambitiously" I read it as "Engineer Ambiguously". So in my mind that's what NI's slogan will always be.
07-29-2021 12:46 PM
Create a constant wiht the filename on it and labview will always save data on the same file. Select APPEND TO FILE on the configuration pannel of the Write to measurment file