LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file type association

Hi,

Is it possible to associate a file type extension (*.txt) for example
to a labview aplication ?
That in order to open a file just by double clicking on it.

Thanks in advance for your help.
Maxime

0 Kudos
Message 1 of 4
(2,634 Views)

I do not clearly understand what you are after. If you want labview to open a file just by double clicking on it, it cannot be done. Labview is not a text editor.

But if you wanted to program up a VI and build it into an EXE and then associate that file extension with that particular exe then this might be able to be done.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 4
(2,620 Views)
Under Windows, you need to do two things:
 
OS side: Associate the extension with your LabVIEW application
LabVIEW side: Code your program so it catches the commandline parameters when it opens via explorer to get the filename that was just double-clicked or dropped on the executable. 
 
A more detailed discussion can be found in the following thread:
 
 
(I am not familiar how to do this under e.g. Mac or Linux)
 
Message 3 of 4
(2,616 Views)
Hi,

I was able to do what I wanted.
I've just associated the extension file to my labview application
(exe).
Then, at startup, my program reads the command parameters. If the
parameters is a file with the good extension, it manages this file.
In fact, if you double click on a file with an extension which is
associated with an executable, Windows opens this executable and
passes the name of this file as the command parameter.

So now I'm satisfied.
Thanks for your help


Jhoskins a écrit :

> I do not clearly understand what you are after. If you want labview to open a file just by double clicking on it, it cannot be done. Labview is not a text editor.
> But if you wanted to program up a VI and build it into an EXE and then associate that file extension with that particular exe then this might be able to be done.

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