I am trying to modify the C# simple user interface which came with TestStand 2014. I want to run a sub-sequence and retrieve the results from the parameters. I can load parameters into the sequence prior to running it and I can run it, but I cannot figure out how to retrieve the parameter data after the sequence is run.
Here is my code:
this.axSequenceFileViewMgr.Sequence = this.axSequenceFileViewMgr.SequenceFile.GetSequenceByName("zzTestSeq");
this.axSequenceFileViewMgr.Sequence.AsPropertyObject().SetValNumber("Parameters.SetPoint", 0, 149.0);
Execution ex = this.axSequenceFileViewMgr.Run();
val = this.axSequenceFileViewMgr.Sequence.Parameters.GetValNumber("SetPoint", 0);
The TestStand sub-sequence zzTestSeq takes the SetPoint value and calculates a new value 321 which it returns in the same SetPoint variable.
The last line above, after the run command, only returns the original SetPoint value, 149, not the modified one.
How do I access the parameters, in this case the SetPoint AFTER the sequence runs with the updated values?
Thanks,
Robert