05-22-2011 08:24 PM
Is it possible, after the error message popup,
a) I want to print out a message in the report after the flow completed. If yes, how would i do it?
b) I had an existing interactive flow. After the message popup, i want the user to re-enter/change some of the parameters and only continue the flow. How would i do that?
Thank you!
05-22-2011 08:41 PM
Also, what if i want to error out or end the entire flow after the OK button is hit? How should i do that? Thank you!
05-23-2011
02:26 PM
- last edited on
11-05-2024
04:13 PM
by
Content Cleaner
Hi faithict,
What error message popup are you getting? Is it a TestStand error, or are you using a Message Popup step to create your own error message?
What is the message that you want to add to the report? Is it error message information, user entered information, step results, or something else? You can find more information about adding results to a report here.
Do you already have something in place that allows the user to set the parameters? If so, you can probably call the same module to allow the parameters to be set again.
Regards,
Brandon V.
Applications Engineering
National Instruments
05-23-2011 07:12 PM
I am using the Message Popup to create my own message. What i would like to do is that after that Message Popup, I would like the entire flow to error out with that popup message and then quit the flow. Is it possible?
05-24-2011 01:21 AM
Check out the Examples in TestStand in the folder called \Examples\Callbacks.
You should find one called ErrorHandlerExample.seq and another called FailureHandlerExample.seq
Check here
05-24-2011 09:52 AM - edited 05-24-2011 09:53 AM
faithict,
To make your messagepopup step generate an error you simply need to set Step.Result.Error.Occurred to true. You might also want to set Step.Result.Error.Code and Step.Result.Error.Msg. For example, you can do so when the second button is pressed by using the following expression in the post expression of your step:
Step.Result.Error.Occurred = (Step.Result.ButtonHit == 2 ? True : False)
If you just want to add a message to the report you can similarly set Step.Result.ReportText
Hope this helps,
-Doug