LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom path for "Write delimited spreadsheet"

Solved!
Go to solution

I am trying to add the file extension after the user selects the file name. Specifically, when the user clicks a button I would like to open a windows explorer where I enter the desired file name for my spreadsheet. After that I would like to add ".csv" programmatically. I can't seem to figure out how to do this. 

I tried to convert the path to a string, add the ".csv" and the turn the string back to a path. When I add this before the "Write delimited spreadsheet" the program crashes (img1). When I add if after the program opens the windows dialog properly but ignores the ".csv" (img2).

 

I am new to this, any help is much appreciated.

Download All
0 Kudos
Message 1 of 3
(16,338 Views)
Solution
Accepted by topic author mre@otenet.gr

Hi,

 

Use the "File Dialog" Express VI (Advanced File Functions palette) with the appropriate pattern. This will automatically add the extension in case the user does not type it explicitly:

raphschru_0-1701260555559.png

 

P.S.: If you want to do it on an already chosen path (without the dialog box):

raphschru_0-1701260948800.png

 

Regards,

Raphaël.

Message 2 of 3
(16,313 Views)

Thank you so much. That was it.

0 Kudos
Message 3 of 3
(16,305 Views)