NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

message popup

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!

0 Kudos
Message 1 of 6
(3,692 Views)

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!

0 Kudos
Message 2 of 6
(3,691 Views)

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

0 Kudos
Message 3 of 6
(3,662 Views)

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?

0 Kudos
Message 4 of 6
(3,653 Views)

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

 

 

Regards
Ray Farmer
0 Kudos
Message 5 of 6
(3,578 Views)

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

0 Kudos
Message 6 of 6
(3,570 Views)