From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ExpressionEdit UI Control. Set "Check Expression"

Solved!
Go to solution

Hi All,

 

I have a dialog window in LV  which should contain an  ExpressionEdit ActiveX Control. 

The user must be able to check if an expression is valid.  In my particular case the control must evaluate an expression as Boolean. For this purpose i use ExpressionEdit.SetValidEvaluationTypes method and  PropValTypeFlag_Boolean (see vi attached). But the problem is that any expression passes an error check 😞 

Roman_L_0-1625680439129.png

Any Idea what could go wrong here?

 

Best regards,

Roman

0 Kudos
Message 1 of 3
(905 Views)
Solution
Accepted by topic author Roman_L

ErrorCheck Property

Syntax

ExpressionEdit.ErrorCheck

Data Type

ErrorCheck

Use the following constants with this data type:

  • ErrorCheck_None–(Value: 0) No error checking.
  • ErrorCheck_Syntax–(Value: 1) Checks only for syntax errors.
  • ErrorCheck_SyntaxAndEvaluation–(Value: 2) Checks for syntax and evaluation errors.

That needs to be set to 2 for your ExpressionEdit box.  Otherwise it won't check the type.  You can do it through a property node or  you can right click on the control in LabVIEW and go to ExpressionEdit>>Properties... then change the ErrorChecking tab.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(872 Views)

Many thx!

0 Kudos
Message 3 of 3
(866 Views)