NI TestStand

取消
显示结果 
搜索替代 
您的意思是: 

Changing the limits from the code module

已解决!
转到解答

Hi,

 

For one test (Numeric limit, TS4.2) I'd like to set the limits for this test from within the module.

 

To do so I passed the Context to the module (LV8.6) doing that I can access the Step.Result.Limits property, however I could not find any Property called Result. I was trying do so using As property object but I couldn't.

 

Any help?

 

K.

0 项奖励
1 条消息(共 7 条)
4,489 次查看

Use Step.Limits not Step.Result.Limits

CTA, CLA, MTFBWY
0 项奖励
2 条消息(共 7 条)
4,487 次查看

How are you accessing the Step.Result.Limits property in LV?

 

First of all for the Numeric Limit step there is no such property as Step.Result.Limits.  It is Step.Limits.High or Step.Limits.Low if you want to change the limits.

 

If you want to find the properties that are accessible then click on the step and click on the Properties tab for that step.  Now click on the Property Browser.  You should see all the properties with respect to Step.

 

So simply pass ThisContext to  your subVI and place down a TestStand - Set PropertyValue.vi.  For the Lookup String use Step.Limits.High and change the polymorphism to Number.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 项奖励
3 条消息(共 7 条)
4,485 次查看
I
CTA, CLA, MTFBWY
0 项奖励
4 条消息(共 7 条)
4,483 次查看
I think jigga needs a negative kudos for the unnecessary detail 😉
CTA, CLA, MTFBWY
0 项奖励
5 条消息(共 7 条)
4,482 次查看

Hi,

 

First of all a bit of explanation. I was thinking of multiple numeric limit test not about numeric limit test. Sorry.

 

However, when I'm ececuting the code below I'm receiving -17306 error:

 

Error -17306 occurred at Unknown variable or property name 'Step'.
Error accessing item 'Step.Result.Measurement[1].Limits.High'. in Untitled 5.vi->Untitled 5.vi.ProxyCaller

This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.

 

Any help?

 

Capture785.PNG

0 项奖励
6 条消息(共 7 条)
4,468 次查看
解答
接受人 MimiKLM

Sorry guys,

 

Everything perfect now. I did one typo (Unit instead of Units) and I removed the 'Step' from the properties names of course.

 

Capture969.PNG

0 项奖励
7 条消息(共 7 条)
4,460 次查看