NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Fail and Replace Message

This seems like such an obvious thing to want to do in TestStand, but being new to TestStand I am not sure what the best way is to do it...

When we run a test using TestStand, our goal is to determine if we have a failed piece of equipment. If we have a failure, we want to have a message describing the specific piece of equipment that needs to be replaced. We want this callout message to show up in the TestStand report, as well as on the screen as the Test runs.

Any clues as to the best way to do this? A message popup would work for the screen, but that wouldn't go in the report.
0 Kudos
Message 1 of 2
(2,780 Views)
Use Step.Result.ReportText and set it to anything you want. It will appear in the report. For example, in a post expression for your step, you could include the line Step.Result.ReportText = "Equipment Failure: " + Locals.Equip, where Locals.Equip would be a string containing the name of the failed equipment, like "DMM". The text "Equipment Failure: DMM" will appear in the report.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,772 Views)