LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing step limit programatically in TestStand 3.1

Solved!
Go to solution

Hello guys and girls.

 

I've been given a small task in TestStand 3.1 and I'm not sure how to do this.

 

I would like to programatically change the step limit (multiple numeric limit test) for a step before it is run. How can i do this? I read that someone suggested to use an ActiveX step to access the limits:

 

http://forums.ni.com/t5/NI-TestStand/Equivalent-to-Step-Limits-Low-NumericFormat-in-TestStand-3-1/td...

 

"TestStand 3.1 does not support API calls in expressions (I think that feature was added in TestStand 4.0). You need to use an ActiveX step instead. You can use an ActiveX step configured to call into PropertyObject.NumericLimit and call it on Limits.Low of the step you wish to set the property on."

 

I am, however, unsure how to do this exactly since I have never used ActiveX components in TS before.

 

If someone has some example code (or could write it) I would be very grateful.

 

-Kim

0 Kudos
Message 1 of 4
(2,457 Views)
Solution
Accepted by topic author teknik_kim
As noted in that thread, you can most certainly change the limits in your version. Read it again.

p.s. In the future, please post to the TestStand board and not LabVIEW.
0 Kudos
Message 2 of 4
(2,448 Views)

Hello

 

But there are no Step.limits.x entries in TestStand 3.1(?). This is the way I would normally proceed.

 

0 Kudos
Message 3 of 4
(2,446 Views)

Hello

 

You are right, the limits can be changed in the pre-expression. I just looked in the wrong place.

 

Cheers.

 

0 Kudos
Message 4 of 4
(2,434 Views)