Example Code

Programmatically Toggle Which Execution Entry Point is Available with Interactive Execution using a New Tools Menu Item

Code and Documents

Attachment

Download All

The following will allow a user to programmatically toggle either Test UUTs or Single Pass as the execution entry point available with the context menu for an interactive execution.

You may call the InteractiveExeToggle.seq file (which requires the StripPath.vi) from another sequence file or you may add it as a menu item under the Tools menu.

When we're finished, the following feature should be added to the Tools menu as below:

NewMenuItem.png

First navigate to Tools » Customize...  Click Add.  This will pull up the Add Tools Menu Item dialog box.  Make sure your Add Tools Menu Item dialog box settings match mine in the image below.

AddImage.pngToolMenuDetails.png

Press OK.  Now every time you navigate to Tools » Toggle Interactive Execution Entry Point Switch, you should see the following change with the step pane context menu:

TestUUT.pngSinglePass.png

Note: The attached Code is provided As Is.  It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments.  You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors