NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use MultiNumericLimitcheck for custom c#-teststep

Solved!
Go to solution

Hello,

i have a c#-teststep that has two returnvalues that i want to limitcheck.

 

Currently i put them into Step.Result.Measurement[0].Data and

Currently i put them into Step.Result.Measurement[1].Data

 

But what to do then? How can i add a limitcheck?

 

Thanks for help

0 Kudos
Message 1 of 4
(3,715 Views)
Solution
Accepted by topic author OnlyOne

For MultiNumericLimit test step type you should put them in Step.NumericArray[0] and [1] respectively.

 

Then on the Limits tab of the step you can add measurements (2 in your case).  Each measurement is comparable to a single numeric limit test type.  So you give it The Measurement Name and then set up the limits just like in a numeric limit in pane on the right hand side.

 

Hope this helps.  Let me know if you have more questions.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(3,706 Views)

Thanks. Its working now.

Is it possible to limitcheck only one value in a MultiNumeric-Step?

Currently i check [0] a [1]. If i decide one day that i only want to check [1]. Is this possible?

Thx

0 Kudos
Message 3 of 4
(3,688 Views)

I think it would be an intriguing idea to have each limit for the MNL have a flag to turn it on or off.  I like it.  You can post it on the idea exchange.

 

As a workaround you could do the following in your preexpression:

RemoveElements(Step.Result.Measurement, "[0]", 1),

Step.ExpectedNumMeas--

 

Looks like that is working.

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