LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I open an LabView executable when a double-click on a file?

That is not "another" solution, that is "the" solution. As I explain in the article, the command-line have to be read by another application (it can be a batch file, a small LabVIEW executable or an VBSscript with ActiveX) and passed to the main application. I recommend the VBScript because it doesn't require the Application Builder (for LabVIEW releases without AB) and launches automatically the Top Level VIs of the main application if it is not running.


LabVIEW, C'est LabVIEW

0 Kudos
Message 21 of 22
(981 Views)
The "Open on double-click" part have been covered, now let's see how to "open another window".

After the double-click, a VI in your application is called and passed the filename. Its job is to open a file viewer/editor VI to open and handle the file. If you only need one file at a time, then you are done. However, if you need a Multiple Document Interface (MDI) e.g. several windows to handle several files simultaneously, then you need the file viewer/editor to be a VI template, a VI with the *.VIT extension. Making the first VI (called with the file name)reentrant, then the user can simultaneously select several files in the Explorer and open them. A window will popup for each file selected.


LabVIEW, C'est LabVIEW

0 Kudos
Message 22 of 22
(924 Views)