NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying the default dialog to select a TestStand variable initiated from C# code

Hi,

 

I have custom step types written in C#.While executing the Edit SubStep for an instance, the user should be able to select a TestStand variable.I wonder if it is possible to view the default variable dialog used in TestStand, initiated from my C# code.

After selecting a variable in the dialog, I need the value written into the Expression window.

So, I need also a method to readout the value of the expression window. Does anyone know if this is possible?

 

Best regards

0 Kudos
Message 1 of 3
(3,281 Views)

Let me see if I understand you correctly- You want to show the Browse Expression Dialog Box?  If you have a handle to the Engine you can do this using Engine.DisplayBrowseExprDialogEx() method. 

 

There is also an ExpressionEdit object you can use as well. 

 

You can read about both of these in the TestStand help.

 

Hope this sheds some light,

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

Note that if you drop a TestStand ExpressionEdit control on a form/panel/vi, you can use the Buttons page on the property sheets to add an ExpressionBrowser button that automatically works with that ExpressionEdit control.

 

Remember to set the ExpressionEdit.Context property to the SequenceContext or PropertyObject that the expression evaluates under.

Message 3 of 3
(3,267 Views)