LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Associating file types with an executable

I would like to be able to associate a file type with my executable, and have a specific file load into my executable when that file is double clicked (similar to how Excel opens an xls file when that xls file is double clicked). Is there any way to do this in labview? The file is a TDMS file.

 

Thanks,

 

Rodrigo
0 Kudos
Message 1 of 5
(2,741 Views)
Hi, what do you mean? Do you want to program in LabVIEW for this behavior of your TDMS files?
0 Kudos
Message 2 of 5
(2,726 Views)
See here. I haven't done this myself so I can't comment any more. Note that the event mentioned in the first section is a private event, meaning you won't have access to it. You can try searching the LAVA forums to find the original thread.

___________________
Try to take over the world!
0 Kudos
Message 3 of 5
(2,711 Views)

And the mentioned event on the LabVIEW Wiki only worked in LabVIEW 8.2.

 

Please vote for this idea!

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(2,694 Views)

You should be able to do this with the application->app.arguments property.

This property gives you the command line arguments (like in c the args[] on the main function).

This returns a string array, when you use an open with or drag a doc into your build (check the pass command line arguments under the advanced builds options page) this property will return a string array, the second element is the path to the doccument.  In the beginning of your processor/display exe check if this is a valid file and execute the code as desigend.  A state machine architecture is nice fvor this, add a stat called check command line and if this is valid jump into your processing state, otherwise run your program as expected.  You can retrofit any processing application with this approach.  As for locking the associations, you can usually do this by giving your docs a unique extension (dont use an existing extension like .txt, .exe, .vi ...) Click open with, browse for your application, after select always use this application.

This has worked for me in the past.

 

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(2,678 Views)