10-30-2008 02:43 PM
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[]?
Solved! Go to Solution.
10-31-2008 04:40 PM
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!
10-31-2008 05:04 PM
10-29-2010 01:19 PM
Can we iterate a for loop inside of an expression?
11-01-2010 09:18 AM
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