12-06-2012 04:34 PM
If I'm in a client sequence file and I want to dynamically execute my own configuration entry point in the process model what is the best way to accomplish that?
I am trying to get the application manager through an activex step using Engine.GetInternalOption(InternalOption_ApplicationmManager) and then I choose the GetCommand method with CommandKind_ConfigurationEntryPoints_Set. It will only use an index for one of the 3 default configuration entry points (Report Options, Model Options or Database Options). It throws an index out of range if I try to get my own. This is from James Grey's post here: http://forums.ni.com/t5/NI-TestStand/Calling-a-Configuration-Entry-Point-from-a-C-code-module/td-p/1... (I'm not in .NET though. I just want to use activex steps in TS). The 3 default ones work perfectly. It's only when I try my own that I've added.
Any thoughts?
Solved! Go to Solution.
12-07-2012 10:03 AM - edited 12-07-2012 10:05 AM
You might want to just use a "New Execution" sequence call instead. I think that would be a lot simpler.
Another possibility is to use the Engine.NewExecution API instead, which would also probably be simpler than using the ApplicationMgr for this use case.
-Doug
12-10-2012 08:15 AM - edited 12-10-2012 08:16 AM
I can call it directly as well but it doesn't exhibit the behavior I want.
Basically we have a process model with a Configuration Entry point called About Test. This calls a sub sequence which has 2 steps in it. The first step is a callback and the second is a VI call. The VI displays a splash screen with our company logo, disclosure and the text (usually a software part number) returned by the callback.
What I want to do is put the SequenceFileLoad callback in our clients and have a step in there that will invoke the About Test entry point upon sequence load.
The series would look like this:
SequenceFileLoad(client)>>About Test Configuration Entry Point(model)>>SubSequence(model)>>About Test Model Callback (client)>>VI Splash Screen(model)
All of this would be a lot easier with a (ProcessModelFileLoad): http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/ProcessModelFileLoad-Engine-Callback/idi-p/225016...
So back to my point about it not working correctly. It doesn't seem to be invoking the model callback when I use New Execution or call the sequence directly.
Also, what is the explanation for my config entry points not showing up at all in the list? it seems that function should grab all config entry points in the model.....
Thanks a bunch,
12-11-2012 08:22 AM
12-11-2012 08:33 AM
12-11-2012 11:46 AM
I finally got it to work. I had to use Do not Wait for the Wait for Execution to Complete. Otherwise it would lock up.
I also used Close Window when Done because it would leave the execution window open.
I have abandoned my App Mgr ways.... 🙂
Thanks for the help Doug!