07-21-2014 02:27 PM - edited 07-21-2014 02:28 PM
I'm attemping to call testexec.exe from the command line with the following call:
testexec.exe /runEntryPoint "Execute Test" "C:\Test Sequence.seq" /quit
Our custom process model contains the "Execute Test" entry point. However, when I run this code I get the following error:
"Entry point 'Execute Test' does not exist
Value Invalid or out of range. [Error Code: -17300]"
The error goes away if I set the Station process model to be the custom process model we have, rather than SequentialModel.seq.
The preferred behavior would be to have testexec.exe use the process model defined in the client sequence file rather than be forced to set the station model in order to run sequences from the command line.
Free CAR?
07-22-2014
02:28 PM
- last edited on
10-20-2024
06:08 PM
by
Content Cleaner
Hello,
I have a few questions about your Sequence File settings and the Station's Model Settings.
First, you can bind a process model to the sequence file by going to Edit > Sequence FIle Properties... Under the Advanced tab, there are settings to require a specific process model. Based on the functionality you want (launch the sequence file to load the appropriate process model), it sounds like you need the Sequence File to be bound to your custom process model.
Second, the Station Options will need to be modified to reflect that the sequence file will determine the process model, not the station. I am using this manual article: Station Options Dialog Box as a reference. This says:
"Use Station Model—Enables the Station Model control, which specifies the pathname of the station model sequence file. When you disable this option, no station model is in effect and individual sequence files have no process model unless they explicitly specify one. Usually, sequence files do not explicitly specify process model files."
--In your case, it sounds like the Use Station Model should be disabled to give the sequence file control over the process model.
and
"Allow Other Models—Allows sequence files to specify a process model file other than the current station model file. When you disable this option, you can only load sequence files that do not specify a process model file and sequences that specify the current station model file as their process model file. Use the Advanced tab of the Sequence File Properties dialog box to specify a specific process model for a client sequence file."
--For your application, this needs to be disabled.
To set this, go to Configure > Station Options. Under the Model tab, you can disable Use Station Model and enable Allow Other Models.
With these configurations, does running TestExec from the command prompt still produce an error? Do you notice different behavior when running the sequence file from the TestStand Sequence Editor and the TestExec?
07-22-2014 03:25 PM
This behavior is only present when testexec is being called from the command line. The error does appear when opening the sequence file directly in either the editor or OI.
Changing the model settings has no effect on the error, I've tried all the combinations you mentioned.
07-22-2014 03:26 PM
I can't edit my post for some reason but it should read that the error does NOT appear when the sequence is opened directly in the editor or OI, only when testexec is being called from the command line.
07-23-2014 05:02 PM - edited 07-23-2014 05:03 PM
Ok I found the issue. It is with how the Entry Point is configured in the process model. I modified the Sequence Properties to be this:
Notice the Entry Point name needs to be "Execute Test". Previously it was still set to "Test UUTs". That's why it was not recognized from the command prompt. Also, you chow add it to to the Execute menu by making the Menu Hint Execute.
And now the sequence file runs from the command prompt with the Execute Test entry point
07-23-2014 05:22 PM
We had made those changes in our normal process model but I neglected to port them over to this example sequence. I made those changes but still see the error. I'm using TS 2010 SP1 and the LabVIEW-compiled version of TestExec on Win7 x64. I wonder if this got fixed in a later version.
07-23-2014 05:33 PM
I'm using TestStand 2013, so it's possible that a change has been made. After making the above changes to the example, I was able to run the Test Sequence.seq using the CustomSequentialModel.seq from the command prompt using the "Execute Test" entry point. No error about the entry point missing.
07-23-2014 05:44 PM
Another solid reason to upgrade to the latest and greatest.... 🙂