NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker vs CommandKind_ConfigurationEntryPointInsertionMarker

Hi,

I'm trying to understand what are those "Inserion Markers" command kinds. I don't understand why ConfigurationEntryPointInsertionMarker does not inserting Result Proccesing menu item and ConfigurationEntryPointDefaultMenuInsertionMarker does. How to force to displey only Result Proccesing item and not to display Model Options? I don't understand this help part at all 😞

 

CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker–(Value: 113) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that does not select a menu other than the current menu. Because most entry points do not have menu hints, this constant typically specifies all Configuration entry points.
CommandKind_ConfigurationEntryPointInsertionMarker–(Value: 112) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that selects the current menu.
CommandKind_ConfigurationEntryPoints_Set–(Value: 145) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point. When you specify commands to create menu items, use the CommandKind_ConfigurationEntryPointInsertionMarker and CommandKind_ConfigurationEntryPointDefaultInsertionMarker constants to honor menu hints entry points can specify.

 

http://zone.ni.com/reference/en-XX/help/370052M-01/tsuiref/reftopics/commandkinds/

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(3,473 Views)

Michal,

 

Review the content here about CurrentMenuName and AllMenuNames. As the help topic you pointed out mentions:

CommandKind_ConfigurationEntryPointDefaultMenuInsertionMarker–(Value: 113) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that does not select a menu other than the current menu. Because most entry points do not have menu hints, this constant typically specifies all Configuration entry points.

CommandKind_ConfigurationEntryPointInsertionMarker–(Value: 112) Specifies a set of commands that contains a CommandKind_RunEntryPoint command for each Configuration entry point with a menu hint that selects the current menu.

 

I was able to do what you're looking for with the following code and process model sequence property changes:

snip.png

model.PNG

 

End result:

end.PNG

 

Hope this helps,

Trent

 

 

 

https://www.linkedin.com/in/trentweaver
Message 2 of 3
(3,454 Views)

Also, here's a useful link for anyone who comes across this post and has no background knowledge on custom commands:

 

White Paper: Adding a Custom Context Menu to the LabVIEW Full Featured TestStand Operator Interface

 

That's the code I altered in my last post.

 

Best,

Trent

https://www.linkedin.com/in/trentweaver
Message 3 of 3
(3,453 Views)