12-10-2008 04:43 PM
I would like to present the user with the option of selecting the Execution Entry Point. TS provides Single Pass and Test UUTs by default in the process model. My application only allows the use of the Station Model which is set to the Sequential Model. I am programming in VisualStudio 2005 (VisualBasic) and using the API. When I execute ApplicationMgr.ExecutionEntryPoints.Count I always receive a value of 0. If I execute ApplicationMgr.ConfigurationEntryPoints.Count I always receive a value of 3 (Report / Database / Model Options) as I expect. I can then use .Item(x) to get the names of the Config Entry Points.
Any ideas would be helpful.
Thanks
Solved! Go to Solution.
12-11-2008 10:42 AM
Hello,
The OI examples that ship with TestStand will be of particular help to you in this instance. These examples can be found at <TestStand>\UserInterfaces\Simple\VB.Net, where <TestStand> refers to the directory where you installed TestStand. Take note of the two buttons just below the Sequence File and Sequence selection that dictate which Execution Entry Point to employ.
12-11-2008 01:36 PM
I appreciate the reply and I am aware of the TS specific controls for use with Studio. I have figured out the functionality that I was looking for. However, I am trying to use the API.
What I wanted to know is why
AxApplicationMgr.ExecutionEntryPoints.Count always returns 0 and, therefore, AxApplicationMgr.ExecutionEntryPoints.Item(x) returns an exception
when
Dim myStationModel As NationalInstruments.TestStand.Interop.API.SequenceFile = AxApplicationMgr.GetEngine.GetStationModelSequenceFile("")
myStationModel.NumSequences
myStationModel.GetSequence(x).Type
myStationModel.GetSequence(x).Name
return the values as I expect them to.
12-11-2008 02:22 PM - edited 12-11-2008 02:26 PM
12-22-2008 01:53 PM
MAC,
This was reported to R&D (# 138126) for further investigation. We are not sure what the problem is at this point, but I will post back here when more information is available.
Thanks for helping to make TestStand a better product!