NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Test Stand File menu item entry point execution in VC++ code

Hi,

 

Can you please suggest me, how to execute a file menu item entry point pragmatically in a VC++ code.

My process model seq inserts an item called "Select Model" into TS file menu.

i have to programmatically execute this entrypoint from an Operator interface developed in VC++.

Request your suggestion in this concern.

0 Kudos
Message 1 of 3
(4,259 Views)

Couln't you just use the PerformClick Method?  So basically you'll have a reference to your menu somewhere in the code.  Get the node of the item you want and then use the PerformClick method.

 

From MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.menuitem.performclick%28v=vs.71%29.aspx

 

I recommend that vs going through the TestStand API.  It will be a lot cleaner.

 

 

 

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

Is "Select Model" a configuration entry point? If so, maybe the following would work:

 

Command command = seqFileViewMgr.GetCommand(CommandKind_ConfigurationEntryPoints_Set, 0);

 

command.Execute(parameter depends on how you want to handle errors);

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 3
(4,244 Views)