From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write DAQ data into a .txt or .csv file

Solved!
Go to solution

Hi,

 

I want to write the DAQ data inot a .csv or .txt file, so I'm trying to use "Write To Spreadsheet File", cause I can save data in any formats. My concept is that the DAQ data will save in a same file continuously when I'll press the ON button and when I'll press OFF button then it'll ask to the user to save the file.

 

I have attached the VI file.

 

But my problem is that every time it's asking me a new file even though I have put the append file as true.

 

Any suggestions.

 

Thanks,

Chotan

0 Kudos
Message 1 of 4
(4,975 Views)

Hi Chotan,

 

the first you should do is to read the context help for the functions in use!

Here you would read this:


file path is the path name of the file. If file path is empty (default) or is <Not A Path>, the VI displays a dialog box from which you can select a file. Error 43 occurs if you cancel the dialog box.


 

So what will be the solution to prevent opening the file dialog with every call of WritetoSpreadsheet?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(4,970 Views)
Solution
Accepted by topic author chotan

Try this

append.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 4
(4,967 Views)

Hi,

 

Thanks for your quick suggestions and modified file, guys.

 

/Chotan

0 Kudos
Message 4 of 4
(4,963 Views)