NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a new step type into a submenu?

Hi!

I'm inserting a step type into the MyTypes.ini file with c++.

With the code below I managed to put it into a menu (in the step type menu editor it is called "Group").
But I want a sub menu.
How can I put it into a sub menu (in c++)?

Who can help me? Thanks in advance!!!

Here is the code:


...
property->PutName("StepTypeName");
typeUseage->InsertType(property, 0, TS::TypeCategory_StepTypes);

stepObj->PutMenuGroupName("StepTypeMenuGroup");
0 Kudos
Message 1 of 5
(2,890 Views)
Hello TSNewbie,

I hope that this example will help you.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D88556A4E034080020E74861&p_node=DZ52238&p_source=External

Best regards
TN
0 Kudos
Message 2 of 5
(2,890 Views)
Hello TN,

unfortunately it doesn't help me!

I wanted to know how I can add a group (a subgroup) to the "Step Type Menu Editor" of the "Type Palette" with a program written in C++.
0 Kudos
Message 3 of 5
(2,890 Views)
TSNewbie,

There is no API method to edit those groups. I can only suggest to use the Step Type Menu Editor to create the group you want and make it a submenu. Then when you call stepObj->PutMenuGroupName("SubMenuGroup") the step type will be in that submenu.

I apologize if this isn't the answer you are looking for.

Ronald Byrd (NI)
0 Kudos
Message 4 of 5
(2,890 Views)
Thank you!

Then I have to edit the "TestExec.ini" programmatically.
0 Kudos
Message 5 of 5
(2,890 Views)