NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use return value to make Multiple Numeric Step pass or fail

Solved!
Go to solution

Hello,

 

I am using a Multiple Numeric Step to check several measurements performed by an external DMM by means of a function created in CVI.  I would like to use the Return value of the function to overwrite the overall status of the step. The reason is that the return value indicates a communication error whilst the measurements are taken, and that would lead to a false "False" or to a false "Pass"

 

What I would liek to do is more or less this>

 

If return value = 0 then check if the measuremets are between the limits

If return value != 0 there was a communication error so the step should fail regardless of the measurements.

 

I tried combining the multiple numeric step with a pass/fail step but it does not work.

 

I trie also to modify the status expression of the Multiple Numeric steps but basically ignores it.

 

Any ideas?

 

Thanks,

 

Javier

0 Kudos
Message 1 of 3
(3,231 Views)
Solution
Accepted by topic author BNogart

Why don't you just make that return value another limit for the multiple numeric limit step.  Set the comparison to EQ and the Low limit to 0.

 

That would make the most sense.

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

Hi,


Actually I though about this possibility but passing the return value as part of the measurement array.

 

I just realized that you can specify the DataSource for each of the measurements, so I just need to check the return value there.

 

Great answer,

 

Thanks

0 Kudos
Message 3 of 3
(3,222 Views)