UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand User Interface using C#

Hello,

 

I am trying to modify the sample TestStand 2016 C# user interface code to run 1 sub sequence.  I am able to change the 'Parameters' before running the sequence and I can execute the sequence, but I can not get access to the "Parameters" which have been modified by the sequence back into the C# code.  Can anyone help?

Here are the parts of the code:

this.axSequenceFileViewMgr.Sequence = this.axSequenceFileViewMgr.SequenceFile.GetSequenceByName("zzTestSeq");

this.axSequenceFileViewMgr.Sequence.AsPropertyObject().SetValNumber("Parameters.SetPoint", 0, 149.0);

Execution ex = this.axSequenceFileViewMgr.Run();

In this example the zzTestSeq changes the SetPoint parameter from 149 to 321, but I can not access the Parameters.SetPoint after the Run() command executes.

If I do this:

val = this.axSequenceFileViewMgr.Sequence.Parameters.GetValNumber("SetPoint", 0);

I get the 149 back again.

 

Thanks,

Robert

 

0 Kudos
Message 1 of 1
(3,188 Views)