Aaron,
> When I change the 'sequenceName' parameter to the "Sub-sequence 2",
> the NewExecution() method throws exception
> TS_Err_UnknownFunctionOrSequenceName. Also, remember that this code
> works for steps in the main sequence, and I don't have to specify
> "Main Sequence" as the 'sequenceName'.
Hm. I've only used NewExecution to start entry-point executions, never to
run steps interactively, so I'm just guessing here...
None of the NI C or C++ examples are very clear on what the sequenceName
parameter should be when running just steps interactively. They pass a
variable, but never show you what its actually set to. However, in the
LabVIEW example in the NI document "Executing Steps Interactively Inside of
the Operator Interface", the ONLY
terminal wired in the NewExecution call is
the InteractiveArgsParam parameter. My LabVIEW skills are rusty, but isn't
this the equivalent of passing NULLs for the other arguments? Try passing
NULL (or varNoParam the sequenceArgParams and editArgParams) and for the
other arguments and see if that helps.
Good luck,
---
Bob