Adding Action VIs to a Custom Device

NI VeriStand 2018 Help

Edition Date: May 2018

Part Number: 372846M-01

»View Product Info
Download Help (Windows Only)

Parent Topic: Automating Responses to User Actions with Action VIs

Complete the following steps to implement a new Action VI.

  1. Create a new VI from an Action VI template.
    1. From the custom device LabVIEW project, navigate to Custom Device API.lvlib»Templates»Action VI.
    2. Right-click the Action VI you want to customize and select New from Template.
    3. Save the new Action VI to the same directory as the custom device project. After associating this VI with a custom device item, you will customize the code according to your needs.
  2. 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.
    1. From the custom device LabVIEW project, open the Custom Device XML file.
    2. Locate the <Page> tags for the custom device item from which you want to call the Action VI.
    3. Declare the Action VI anywhere beneath the <Item2Launch> tag. For the formatting of the declaration, see NI VeriStand Custom Device XML tags. The following example illustrates how to declare the Action VI.

  3. Customize the Action VI to meet your needs.
  4. Add the Action VI to the Configuration build specification of the custom device.
    1. From the custom device LabVIEW project, double-click Build Specifications»Configuration.
    2. Select Source Files from the Category menu.
    3. Under the Project Files menu, locate the Action VI and move it to the Always Included list.
    4. Select Source File Settings from the Category menu.
    5. Select the Action VI from the Project Files menu.
    6. From the Destination pull-down menu, select the Configuration LLB.
    7. Click OK to save the new settings.

Related Links

Action VI Templates


Not Helpful