Michael ten Den Posted December 17, 2010 Report Share Posted December 17, 2010 Hi everybody, I'm acquiring data and saving that on my disk as .dat. Now I want to later open and analyse the data. So I'm busy with writing a VI thats read the .dat file. The VI is going to be a .exe file. This results in that I can set all my .dat files to that executable. The problem is: When I run my .exe, it still want me to select the .dat file I want to open. But I want it to read the path of the .dat file i'm opening Hopes my problem is clear ____________ Michael ten Den Quote Link to comment
ShaunR Posted December 17, 2010 Report Share Posted December 17, 2010 Hi everybody, I'm acquiring data and saving that on my disk as .dat. Now I want to later open and analyse the data. So I'm busy with writing a VI thats read the .dat file. The VI is going to be a .exe file. This results in that I can set all my .dat files to that executable. The problem is: When I run my .exe, it still want me to select the .dat file I want to open. But I want it to read the path of the .dat file i'm opening Hopes my problem is clear ____________ Michael ten Den If you mean you want it to remember a fixed location. then you will have to either save the path somewhere (and load it when tha app starts), hard-wire a path into the file open, or save a control as a default value (right click on control then select "Data operations>>Make Current Value Default").. The reason it is asking you is because you have not specified a path into the file open (bear in mind that controls are reset to defaults when you open a vI or exe for the first time). Quote Link to comment
Michael ten Den Posted December 17, 2010 Author Report Share Posted December 17, 2010 If you mean you want it to remember a fixed location. then you will have to either save the path somewhere (and load it when tha app starts), hard-wire a path into the file open, or save a control as a default value (right click on control then select "Data operations>>Make Current Value Default").. The reason it is asking you is because you have not specified a path into the file open (bear in mind that controls are reset to defaults when you open a vI or exe for the first time). Thanks for your respons, only thats not exactly what I ment. I want the executable to get the path of the .dat file and open it. Quote Link to comment
Mellroth Posted December 17, 2010 Report Share Posted December 17, 2010 Hi everybody, I'm acquiring data and saving that on my disk as .dat. Now I want to later open and analyse the data. So I'm busy with writing a VI thats read the .dat file. The VI is going to be a .exe file. This results in that I can set all my .dat files to that executable. The problem is: When I run my .exe, it still want me to select the .dat file I want to open. But I want it to read the path of the .dat file i'm opening Hopes my problem is clear ____________ Michael ten Den Do you want the application that you have written to load when you double click the *.dat file, and directly start processing the clicked *.dat file? If this is what you want, please checkout the link http://labviewwiki.o...indows_Explorer /J 1 Quote Link to comment
Michael ten Den Posted December 17, 2010 Author Report Share Posted December 17, 2010 Do you want the application that you have written to load when you double click the *.dat file, and directly start processing the clicked *.dat file? If this is what you want, please checkout the link http://labviewwiki.o...indows_Explorer /J Thats what I needed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.