LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File-saving extensions

Hello, I'm trying to program my vi so that the data the vi generates is saved to a file. I've gotten that far, but I want the user to be able to select where they want to save the file and what they want to name it. However, I need to force them to use .hdr as the extension. Is there anyway to do this with labview other than having them type in the filename and path and concatenating .hdr to the filename?
0 Kudos
Message 1 of 3
(2,907 Views)
If you use a file dialog with a data type specified (*.hdr) the .hrd ending will automatically be appended as long as the user only writes in a name. I do not believe you can prevent that, but you coan scan the path from the file dialog and replace the extension if it is not .hdr (avoids double extensions).
Message 2 of 3
(2,907 Views)
Thanks! That worked perfectly! 😄
0 Kudos
Message 3 of 3
(2,907 Views)