LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Arguments with a LabVIEW Executable while the executable is running

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!

0 Kudos
Message 1 of 3
(3,312 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 3
(3,307 Views)
Mark, thanks for the suggestion on the "allowmultipleinstances".
0 Kudos
Message 3 of 3
(3,273 Views)