Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Evaluate TS expression edit in LV

$
0
0

I'm trying to evaluate a modified TestStand expression within LabView.  I am able to use the expression edit function to get the string to a TS variable.  I would like the user to be able to modify the string selected.  For instance, if I select a numeric type for the IE and select a numeric variable from TS I can add '+ 10' in the expression edit window and it evaluates ok if I click on the check.  What I want is the value that is the sum of the TS variable plus what the user added in the expression edit.  The screenshot below shows how I would like to enter the data into the expression edit.  As shown if I hover over the TS variable it shows it.  If I select all the text in the expression edit and hover it does not evaluate the string to 565 as I would hope.

I've attached the code I created.  I added a property object that gets EvaluateEx but it return another property object and not a numeric like I expected.

My question is: How can I get the evaluated number from the expression shown in the screenshot below?  Also, I would like to do the same thing for the string expression edit if the user adds characters to the end of the variable.

 

ExpEditScreenShot.jpg


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>