NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Combine step type action message popup share string

Hello,

 

I have combined the step action and message popup because I want to be able to change the text in the popup programmatically.

In de VI the text that has to be displayed is send and local variables are made to share the data between the action and message popup.

 

What I tried was to use was to enter Step.MessageExpr in the action Parameter Name Message.

But that gave an error.

 

How can I make this so that I don't have to use the local variable's to send data between action to message popup?

Download All
0 Kudos
Message 1 of 4
(4,456 Views)

To make this work without the local variables you can use the following:

 

Step.TitleExpr

Step.MessageExpr

Step.Button1Label

Step.Button2Label

Step.Button3Label

etc...

 

As parameters from your VI.

 

The other key ingredient here is that your VI needs to wrap each output with quotes.

 

Instead of passing out OK for button 1 for instance you need to pass out "OK"  (with the "s).  The reason you need the "s is because you are assigning to expressions.  The expressions will only evaluate correctly with the "s.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(4,439 Views)

Attached is an example that shows this.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Download All
Message 3 of 4
(4,438 Views)

Thank you very much!

This was indeed the solution.

 

0 Kudos
Message 4 of 4
(4,410 Views)