Use action VI templates with the custom device XML file to automate
responses to user actions.
Before you begin, you should understand the action VI
and the custom device XML
called VIs that execute when a user performs a specific action in a custom device. For
example, you can use an action VI to notify a user of the implications of removing a
specific custom device item before they delete it.
Create a new VI from an action VI template.
From the custom device LabVIEW project, navigate to
Right-click the action VI you want to customize and select
New from Template.
Save the new action VI to the same directory as the custom device
Declare the action VI in the Custom Device XML.
You declare the action VI within the declaration for a specific page. The
action VI executes when a user performs the triggering action on that page.
From the custom device LabVIEW project, open the custom device XML
Locate the <Page> tags for the custom device
item from which you want to call the action VI.
Declare the action VI anywhere beneath the
The following image gives an example of how to declare the action
Customize the action VI to meet your needs.
Add the action VI to the Configuration build specification of the custom
From the custom device LabVIEW project, double-click
Select Source Files from the Category menu.
Under the Project Files menu, locate the action VI and move it to the
Always Included list.
In the Category menu, select Source File
In the Project Files menu, select the action VI.
From the Destination pull-down menu, select the Configuration
Click OK to save the new settings.