10-28-2009 10:38 AM
i'm having trouble passing command line arguments to a labview executable.
for eample,
calling the exe the first time: labdev.exe "file1.dat", this opens the labdev.exe first and the labdev.exe opens the "file1.dat" file
while labdev.exe is running, calling it the 2nd time: labdev.exe "file2.dat", well, nothing happens.
with many windows applications, calling the application the 2nd time either start up a new instance or the application opens the new file. it seems labview executable can't do either.
is there a way to make it work?
thanks!
10-28-2009 10:46 AM
The second issue is easy to explain. By default built applications only allow a single instance to be running at one time. However, if you add "allowmultipleinstances=true" to the application's ini file you will be able to start multiple instances of the application.
As for the command line arguments I am not aware of a way to get new arguments after that application has already started. There may be a way. I looked at the application events that are available in the event structure and didn't see anything regarding the command line arguments. To be honest I have never heard of this behavior before for any application.
10-29-2009 07:23 AM