NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent the User from loading more than one seq file?

Hi,
 
I would like to prevent the tester operator from loading more than one test sequence.  Any ideas how to do it?
 
Thanks
Rafi
0 Kudos
Message 1 of 6
(3,628 Views)
Rafi,
 
I'm not sure what you mean when you say that you want to prevent the operator from loading more than one test sequence.  Does this mean that you want to load the same sequence file every time you open the Operator Interface or whether you don't want the operator to load more than one sequence file at a time.  Just in case, I will answer both questions.
 
If you want the operator to always open the same sequence file in the Operator Interface you could disable the textbox containing the sequence file path and remove the button or menu item that loads the sequence file from the user interface (you would have to load the sequence file programatically when opening the Operator Interface).  Therefore, the operator would not be able to load a different sequence file.
 
If you want the operator to load one sequence file into the Operator Interface at a time, take a look at the code for the Simple Operator Interface.  In this application you can only load one sequence file at a time, in contrast to the Full-Featured Operator Interface where you can load more than one.
 
 
Regards,
 
Santiago D
0 Kudos
Message 2 of 6
(3,591 Views)
Is there a way to PREVENT Testexec.exe from loading a sequence file automatically when it runs? 

I have the problem of sometimes Testexec.exe. tries to automatically launch TWO sequence files, chaos ensues!
0 Kudos
Message 3 of 6
(3,378 Views)
Hello mhousel,

Testexec.exe by default loads the sequence files that were last open when it runs.  It is often desired behavior to have multiple sequence files load automatically.  This should be easily handled by TestStand without any problems.  What do you mean by "chaos ensues"?  Are your sequence files set to run automatically when they are loaded?

If you want to prevent Testexec.exe from loading multiple files, you should be able to close out one of the open files when it loads and that sequence file should not load in the future.  I hope that helps.
Regards,


Marty H.
National Instruments
0 Kudos
Message 4 of 6
(3,361 Views)
Hi Marty,


@Marty_H wrote:
Hello mhousel,

Testexec.exe by default loads the sequence files that were last open when it runs.  It is often desired behavior to have multiple sequence files load automatically. 

[Mark Housel] Maybe for some but certainly not for me. 


This should be easily handled by TestStand without any problems.  What do you mean by "chaos ensues"? 

Certainly Teststand doesn't care a bit how many sequences are open.  But, when my sequences open they initialize HW of the ATE associated with that sequence file during the sequenceFileLoad callback.  e.g. I allocate TELNET handles to a terminal server that connects to multiple console within the system and als for the UUT.

If a second sequence opens it knows nothing about the other sequence and again tries to open a TELENT session to the same port of the terminal server and obviously fails, so my sequence reports that it can't properly initialize the ATE HW.  Bad juju!

Are your sequence files set to run automatically when they are loaded?
I guess so.  Other than the trick of logging in as the special noExecution user and having special code in my sequence and modified Process Model I have no idea how to prevent a sequence fronm "runnin" when opened.

If you want to prevent Testexec.exe from loading multiple files, you should be able to close out one of the open files when it loads and that sequence file should not load in the future.  I hope that helps.

The trick I read somewhere else of modifying the Testexec.uir file to never re-load a sequence file automatically seemes to have covered up solved the problem.

Thanks,
Mark




0 Kudos
Message 5 of 6
(3,357 Views)
mhousel,
 
There is a property of the Application Manager which will stop sequence files from being loaded automatically.  If you set ApplicationMgr.ReloadSequenceFilesOnStart to false, it will not load any sequence files when your application starts up.  You can then call methods for loading a sequence file programatically, or allow your user to select which ones they would like to use.
 
You can  find more information here and here.


Message Edited by Josh W. on 01-28-2008 02:08 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 6 of 6
(3,318 Views)