NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

get step limits and comparsion type in DotNet

Solved!
Go to solution

When i pass the SequenceContext as an argument to a teststep in DotNet i can retrieve the name of the teststep via seqContext.Step.Name, but how do i get the High and low limit and he comparsion type ?

 

Thanks in advance

0 Kudos
Message 1 of 3
(1,617 Views)
Solution
Accepted by topic author Tonnie

Its a bit quick and dirty but in LabVIEW you could do it like this.  Hopefully you can translate it to DotNet?

 

Limits and Comp.PNG

0 Kudos
Message 2 of 3
(1,598 Views)

Hello SercoSteveB

 

Thanks for your quick response

It works now.

 

double HighLimit = seqContext.Step.AsPropertyObject().GetValNumber("Limits.High", 0);
double LowLimit = seqContext.Step.AsPropertyObject().GetValNumber("Limits.Low", 0);
string Comp = seqContext.Step.AsPropertyObject().GetValString("Comp",0);

 

 

 

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