NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I recuperate Value from TestStand UI ExpressionEdit Control in Labview

Hi,

I developed a Step Type with labview and in the edit step I have a problem with my labview code. When I write for exemple locals.texte ( locals.texte = "test")  in the UI expresionEdit Control , the property node DisplayText return "locals.texte" like result and not "test". how can I use it to display the contents of the variable.

 

0 Kudos
Message 1 of 11
(4,215 Views)

 

I am assuming you are wanting the value of the variable rather than the lookup string.

 

try

 

test.png

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 11
(4,191 Views)

Thank you for your answer.

yes this is exactly what i want, i just tested your example in my edit step type I have an empty value, and if I call the VI in TestStand it works. is what I need to do a special configuration for my stepType to work?

0 Kudos
Message 3 of 11
(4,183 Views)

can you post your step type project, if you can post it as LabVIEW 2015.

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 11
(4,173 Views)

here are my VIs , my project is too bih so I will post just the two VI of the StepType ( EDIT and Post Step) with 14 like Version of LabVIEW because I don't have version 15.

 

0 Kudos
Message 5 of 11
(4,163 Views)

Ok I'll have a look.

 

I did create a StepType using the modified VI and it worked for me. The only extra thing  I did was to make the VI a dialog in the VI properties so that it displayed the front panel when invoked by the Edit..

 

 

 

Regards
Ray Farmer
0 Kudos
Message 6 of 11
(4,155 Views)

I tried your Edit VI and it worked for me.

How are you passing the value back into the Step?

 

 

Edit LabVIEW VI Call.png

 

 

Regards
Ray Farmer
Message 7 of 11
(4,152 Views)

In the parameter name  "String " I put a "Step.Text"  and Text is a String 

0 Kudos
Message 8 of 11
(4,147 Views)

So is Text a step property?

 

As in my example where I have Response?

MyActionType.png

Regards
Ray Farmer
0 Kudos
Message 9 of 11
(4,141 Views)

Yes  Text is a step property, as in you example where you have Response, is what there is another configuration to do ? 

0 Kudos
Message 10 of 11
(4,105 Views)