NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line -useExisting modifier

I'm trying to use the -useExisting option with the full-featured LabVIEW User Interface, when I run the command:

"C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Full-Featured\LabVIEW\TestExec.exe" C:\Sequence1.seq -useExisting

TestExec runs and then opens the Sequence1.seq file, however when I run the command again with a different sequence... for example:
"C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Full-Featured\LabVIEW\TestExec.exe" C:\Sequence2.seq -useExisting

It won't open the file...

Am I missing an argument or anything else?

I tested this in TS4.0 and it worked... is this a bug in this version???

Thanks...
0 Kudos
Message 1 of 7
(4,071 Views)
This is the error that I get when I try to open a sequence in the same TestExec.exe instance





Message Edited by << - N - >> on 03-07-2008 09:09 AM
0 Kudos
Message 2 of 7
(4,057 Views)

 



Message Edited by Josh W. on 03-31-2008 02:50 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 3 of 7
(3,964 Views)

 



Message Edited by Josh W. on 03-31-2008 02:51 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 4 of 7
(3,963 Views)

<< - N - >>,

I ran a few short tests on my machine, and I was able to reproduce the exact behavior that you were experiencing.  After speaking with a few of the TestStand developers, we believe that this problem has something to do with the way that LabVIEW launches its executables.  Specifically, we believe that the behavior when launching multiple instances of the same executable changed between different versions of the LabVIEW Runtime Engine.

The LabVIEW full-featured operator interfaces with TestStand 4.0 or 4.0.1 are built with LabVIEW 8.2.1 but the LabVIEW full-featured operator interfaces with TestStand 3.5 are built with LabVIEW 7.1.1.

Which version of LabVIEW are you using to build your OIs?  It is possible if you just rebuild them in a newer version that it will solve the problem.

While searching, I found this post which describes an ini key that might be useful as well.



Message Edited by Josh W. on 03-31-2008 02:52 PM

Message Edited by Josh W. on 03-31-2008 02:55 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 5 of 7
(3,963 Views)
Hi Josh,

I'm building my execs with LabVIEW 8.2.1 and LabVIEW 8.5 and can not get them to work. I tried the suggestion from the forums (setting allowmultipleinstances=True) and works great from the command line (using  -useExisting) but the problem is that when you click on individual files it will open an instance of TestExec per each Sequence File (as I would have expected).

Is there any .ini setting that would allow me to set a default parameter for the executable ???? (i.e. -useExisting)

Thanks a lot for your help!!!

<<N>>


Message Edited by << - N - >> on 04-04-2008 01:37 PM
0 Kudos
Message 6 of 7
(3,879 Views)
You should be able to add -useexisting to your file association for .seq. You might try manually editing the file association in Windows. I don't know the step by step instructions for this off hand, but hopefully it shouldn't be too hard to figure out.

-Doug
0 Kudos
Message 7 of 7
(3,840 Views)