NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically assign a message to TS Popup?

I am using TS 3.1 and want to use TestStand message popup.  At run time I want to change the button names and message displayed.  I tried using the pre-expression to assign a string but the expression window won't allow me to put a double quote.  It gives me an error.  I try using a statement before the popup to build the message and try to add a quote but that won't work either.  The only way that I have been able to get it to work is to have the buttons pull from a local or parameter and the local or parameter already has the hard coded double quote.  I found no way to build or modify
 
I want to be able to build the message on the fly and teststand won't let me use the double quote.  I have tried double quotes, triple quotes and even quadruple quotes and nothin seems to work. 
 
Any ideas?  Is this a feature to protect me from something or a bug?  It seems a little too restrictive.
 
 
I did find a bandaid approach and that was to assign a local to be a single quote and built that local around my built message and button names.  Not a clean way to do it but it works.
0 Kudos
Message 1 of 2
(3,031 Views)

Hi,

As an example to change the label in the Pre Expression of the MessagePopup step;

Use the expression Step.Button1.Label = "\"Hello\""

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,027 Views)