NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the API to set the multiple numeric limits

Solved!
Go to solution
For the numeric limit test , i can find the api limit property to set limits. But for the multiple numeric limits test , i can`t find the limit property to set limits. how can i do? Thank you in advance!
0 Kudos
Message 1 of 9
(5,391 Views)

https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/multiple-numeric-limit-test-...

 

This shows all the sub properties for the MNL Step Type.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 9
(4,275 Views)

Thank you for your response!

Actually, I still can not find the property to set the multiple numeric limits.

Can you tell me where can set the limits from below items? and how can I set? Thank you in advance!

1.Step.DataSource

2.Step.NumericArray

3.Step.UseIndividualDataSources

4.Step.DataSourceArray

5.Step.ExpectedNumMeasure

6.Step.ExtraDataAction

7.Step.MeasToRepeat

8.Step.ExtraMeasAction

0 Kudos
Message 3 of 9
(4,257 Views)
Solution
Accepted by topic author open28

Hi open28,

 

You can see this link : https://www.ni.com/docs/en-US/bundle/teststand/page/expressions.html

I also test it with Multiple Numeric Limit Test and the function is working.

So it will be like below ways and I think you know how to modify it ~

 

RunState.Sequence.Main["Multiple Numeric Limit Test"].Result.Measurement["Measurement 0"].Limits.Low = -99,
RunState.Sequence.Main["Multiple Numeric Limit Test"].Result.Measurement["Measurement 1"].Limits.Low = -97

 

 

Thanks,

Ricky

 

0 Kudos
Message 4 of 9
(4,249 Views)

Hi, ricky

After follow you adveice, i can set the limits.

I have a follow up problem.

Is it possible to edit the name of measurenment. The default name is ["Measurement x"] and it is only after we add the measurement,then we can see the measurement name.

I hope we can edit the name through an expression in the labview vi.

0 Kudos
Message 5 of 9
(4,165 Views)

RunState.Sequence.Main["Multiple Numeric Limit Test"].Result.Measurement["Measurement 0"].Name = <newname>

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 9
(4,154 Views)

open28_0-1582678795028.png

Hi, jigg

Thank you for your response.

It shows an error here.Do I use it in the wrong way?

0 Kudos
Message 7 of 9
(4,144 Views)
Solution
Accepted by topic author open28

Didn't realize you were doing it in LabVIEW.  Name is actually a property of the property object so you have to use the API.  I've attached a screenshot that shows how you could do this.

 

Cheers,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 8 of 9
(4,135 Views)

Hi,jigg

Thank you for your response.

My picture is aimed to show that I use the teststand defaulf API(set property value.vi ) to set the value you gave me, but it didn`t work. So i think the way i used is wrong.

I tried the way you gave  and it is worked. 

Thank you very much!

0 Kudos
Message 9 of 9
(4,126 Views)