NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch a method in .net assembly from TestStands Tools menu

Hi, I have a .net assembly that is called into a TestStand sequence. This assembly contains a method to show an options dialog containing some settings. I do no want to show this options dialog in a step, but it should be started from the Tools menu, is this possible? Best regards
0 Kudos
Message 1 of 9
(3,991 Views)

Hi ccds,

 

you can add a configuration entry point to your processmodel.

If a sequencefile uses this new processmodel you have a new entry in

TestStand menu -> Configure ->

In this new configuration entry point you can call your dialog

and it is shown if you click the new entry in the TestStand menu. 

Regards
DianaS
0 Kudos
Message 2 of 9
(3,959 Views)

Hi DianaS,

 

Could you give a little bit more details how to do this, I do not understand what you mean?

 

Best regards

0 Kudos
Message 3 of 9
(3,955 Views)

Hi

 

attached you get a process model.

Please create a new sequence file and use this process model for it (settings in Sequence File Properties)

In your Sequence file if you click Configure in the menu you will then have a new item called -> My configure options.

If you click on it a message popup will appear.

Instead of this message popup you can include your specific dialog.

Regards
DianaS
0 Kudos
Message 4 of 9
(3,953 Views)

Thanks a lot DianaS,

 

Is it also posible to add a menu item to other menu´s, File and Tools?

 

Best regards

 

 

0 Kudos
Message 5 of 9
(3,945 Views)

If you have a configuration entry point in your process model, you can put the menu item to run that configuration entry point in any menu.

 

Open the sequence properties of the configuration entry point (right-click»Sequence properties, or Edit»Sequence Properties) and go to the Model tab.  On that tab, there is a drop down for which menu you want the item to be in.  It's called Menu Hint.  You can put the item in any menu except for the tools menu this way.

 

configuration entry point menu.JPG 

 

The tools menu is special.  To add an item to it choose Tools»Customize.  A dialog will appear that will allow you to create new tools menu items.  If you have trouble using the dialog, click the Help button for more help.

 

Keep in mind that the tools menu is global to your computer, that is all users and all user interfaces share the tools menu.

A configuration entry point item is only available if your sequence is using that process model.  If a different process model is selected, then it will not display.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 6 of 9
(3,939 Views)

You don't have to modify the process model just to add a tool menu item. Just choose the customize option on the tools menu and add a new one. Choose calling a sequence and create a special tools menu sequence under <teststandpublic>\Components\Tools that has a step that calls your assembly. If what you are doing is specific to your test process it might make sense to use a configuration entry point and customize the process model instead, but it is not a requirement just to create a tool menu item.

 

-Doug

0 Kudos
Message 7 of 9
(3,934 Views)
Thanks a lot, it works great!
0 Kudos
Message 8 of 9
(3,913 Views)
 
0 Kudos
Message 9 of 9
(3,889 Views)