NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a native button to open the Model Options dialog in Configure menu directory?

Solved!
Go to solution

Hi, Guys:

 

     I am start a learn from TestStand's example, it is Building a TestStand UI with Native Controls in Modifying User Interface Folder. I try to add some button to open the following dialogs of:

            Station Options

            Search Directories

            Adapters

            Result Processing

      all the buttons are working properly.

 

      Then I add other button and tried to open Model Options dialog, it is unsuccess.

 

      my C# code is similar to the following below:  

axApplicationMgr. GetCommand(CommandKinds.CommandKind_ConfigureSearchDirectories, 0).Execute(true);   // Open search directory

      I do not know which command of CommandKind can open Model Options dialog.

 

      Anyone who know this?

      Thank you so much!

0 Kudos
Message 1 of 4
(171 Views)
Solution
Accepted by topic author Andrew2024

I think this is due to the fact, that the ModelOptions Dialog is implemented in the seq file of the ProcessModel.

In fact, the ModelOptions is a ConfigurationEntyPoint which must be run as a sequence.

 

Oli_Wachno_0-1732785460457.png

 

Yet you will have to provide parameters...

0 Kudos
Message 2 of 4
(158 Views)

The Full-Featured User Interface allows you to configure ModelOption in Editor Mode.

Hav you already checked the solution used there?

0 Kudos
Message 3 of 4
(141 Views)

Hi, Oli_Wachno:

    Got it!

    I think that's the reason.

    Thank you so much for letting me know more.

0 Kudos
Message 4 of 4
(107 Views)