NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I execute a single TestStand step through the API.

I have written a custom operator interface that displays the sequence steps in a spreadsheet, similiar to the sequence editor UI. I would like to duplicate the sequence editor's ability to execute a single step ("Run Selected Steps", "Run Selected Steps Using", "Loop on Selected Steps...", etc ), but I can't see the applicable method on the TestStand API. Do I somehow use the sequenceArgsParam\editArgsParam\InteractiveArgsParam parameters on the IEngine::NewExecution method to define steps I want to execute?

Thanks,

Aaron
0 Kudos
Message 1 of 3
(3,952 Views)
Hi Aaron,

>>Do I somehow use the sequenceArgsParam\editArgsParam\InteractiveArgsParam parameters on the IEngine::NewExecution method to define steps I want to execute

That's correct. Have a look at the default Operator Interface code of the language you are using.

Basicly you create An IEngine.NewEditArgs and setup the Selected SequenceFile, the SelectedSequence, The SelectedStepGroup and the Selected steps.
Then do the same for the IEngine.NewInteractiveArgs and similars for the SequenceArgs.
Theres quite a bit involved, so it would be better to look at the default full Operator Interface. Then you pass the references to the NewExecution; editArgsParam, sequenceArgsParam and interactiveArgsParam.

What language are you writing your Operator Interface in?


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,952 Views)
I am writing the operator interface in MFC, using Visual Studio 6.

I thought I had looked at all of the MFC operator interface examples. Do you have a link to the "full" MFC operator interface example?

What is the difference between the edit, interactive and sequence arguments. Do I have to pass all three?

Thanks for your help,

Aaron
0 Kudos
Message 3 of 3
(3,952 Views)