NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple numeric limit test, are individual pass/fail results available?

Solved!
Go to solution

I want to communicate pass/fail status to my custom UI so that I can color components red/green as they pass and fail.  I plan to send the pass/fail status along with an ID, corresponding to the component, using UIMessaging.  The UImessage is sent from the sequencePostStep callback.

 

Sending the individual pass/fail status is pretty straight forward(step.result.status) for all of the steps except multiple numeric limit test.  Is there a way to get the individual pass/fail information for each item in a multiple numeric limit test?  The individual information is available in the report.  Could it be pulled from the ReportText[]?

 

0 Kudos
Message 1 of 5
(4,113 Views)
Solution
Accepted by topic author Dillon_G

Hi Dillon,

 

You can get the results from a multiple limit test using Step.Result.Measurement["Measurement 0"].Status, which will give the result of each single measurement.  You could assign the results of 4 comparisons using something like this:

 

Locals.multstring[0]=Step.Result.Measurement[0].Status,
Locals.multstring[1]=Step.Result.Measurement[1].Status,
Locals.multstring[2]=Step.Result.Measurement[2].Status,
Locals.multstring[3]=Step.Result.Measurement[3].Status

 

If the string is too large for this to be practical, you could iterate it using a for loop.  Let me know if you have any other questions!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
Message 2 of 5
(4,090 Views)
Thanks for the reply.  I saw the step.result.measurement property earlier and was assuming it was only the measurement and not the limits and status as well.
0 Kudos
Message 3 of 5
(4,087 Views)

Can we iterate a for loop inside of an expression?

[DL]
0 Kudos
Message 4 of 5
(3,646 Views)

Hello Daniel,

 

I am a little confused on what you are trying to do. Are you trying to use a statement step with an expression as a for loop? If so this is not possible to do. Your best bet would to just use the For loop step type in TestStand and then you can place a Statement step in there. You can also use the Statement step to increment your Loop variable that is keeping track of your loop count. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(3,614 Views)