LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data to files

Solved!
Go to solution

Hello,

 

I have to save some processed data in some files.

 

The files are chosen by the user using a dialog box. However, when the dialog box pops up, it is not known when which file is being saved. Is there any way for the user to conveniently realise which file he is saving? In my program, the user has the option of saving / appending data to different files separately. Hence it becomes very confusing to remember the order in which the dialog boxes occur. Please suggest a solution to this.

 

In addition, can you please advice how to attach timestamps to the saved data?

 

Thanks 🙂

 

P.S. All data is being saved in one cycle in the loop.

 

 

Dheeraj Bharadwaj
IIT-Madras
0 Kudos
Message 1 of 4
(2,599 Views)
Solution
Accepted by topic author dheeraj2102

Hi Dheeraj,

 

I understand that when saving the user will have to select two files? One to save and another to append data?
If that's so, you can specify to the user which of the files they are saving at the title of dialog box (the File Dialog box has a property named "Prompt" in which you can wire a custom name/text to your dialog window).

 

Regarda,

Mariana. 

Message 2 of 4
(2,594 Views)
hello thank you for your reply.

how exactly may I access the properties of the dialog box? I'm using a write to spreadsheet file vi in my program.

thank you.
Dheeraj Bharadwaj
IIT-Madras
0 Kudos
Message 3 of 4
(2,578 Views)

Hi

 

I think maybe you're not using the File Dialog express VI, but letting the WritetoSpreadsheet open the file dialog. You can do as below.

 

fileDialog.png

 

Regards,

0 Kudos
Message 4 of 4
(2,576 Views)