NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain sequence context from engine

How can I obtain the sequence context to the current step from the engine pointer? I have access to the engine pointer from my C source but need access to the sequence context. The purpose is to be able to write to Step.Result.ReportText.

I have tried the engine->GetSequenceFileEx(), but no luck...
0 Kudos
Message 1 of 2
(2,997 Views)
To Ke -
When a step executes, a sequence context temporarily contains a reference to a runtime copy to the step that is running. When the next step executes, the sequence context points to this next step and not the previous. The engine is basically the high level application reference so you cannot get to a runtime step or a sequence context from a reference to the engine. You must either get a ref to the sequence context or the runtime copy fo the step itself to be able to write to one of its subproperties.
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 2
(2,988 Views)