Automating Responses to User Actions with Action VIs
- Updated2025-10-27
- 2 minute(s) read
Automating Responses to User Actions with Action VIs
Use action VI templates with the custom device XML file to automate responses to user actions.
-
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 project.
-
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 file.
- 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
<Item2Launch> tag.
The following image gives an example of how to declare the action VI.

- Customize the action VI to meet your needs.
-
Add the action VI to the Configuration build specification of the custom
device.
- 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 Settings.
- In the Project Files menu, select the action VI.
- From the Destination pull-down menu, select the Configuration .llb file.
- Click OK to save the new settings.