Table Of Contents

Building a Custom Device

Last Modified: March 24, 2021

Build a custom device for distribution to VeriStand.

Before you begin, you should start implementing your custom device. It will take several iterations of implementing and building to create your custom device.
The process for building the source distribution for a custom device is the same as the process for building any source distribution in LabVIEW. When you build a custom device, the Build Specifications item in the LabVIEW project must include source distributions called Configuration and Engine.
spd-note-note
Note  

For more information on building source distributions, refer to the LabVIEW Help by selecting Help»LabVIEW Help in LabVIEW.

  1. Open your LabVIEW project.
  2. Create a Configuration source distribution.
    1. In Project Explorer, right-click Build Specifications and select New»Source Distribution.
    2. In the My Source Distribution Properties dialog box, click Information, and enter the Build specification name as Configuration.
    3. Enter a Destination directory.
    4. Click Source Files and determine which files to include and exclude.

      All dependency files that the custom device accesses on the target must exist in the LabVIEW project and appear in the Always Included list for the appropriate source distribution. You should include any dynamically-loaded dependencies, such as pages and the Initialization VI.

      spd-note-note
      Note  

      You must include the Custom Device XML file in the Configuration source distribution.

    5. Click Destinations and set the Destination type to LLB.
    6. Click Additional Exclusions, and disable Modify project library file after removing unused members.
      spd-note-note
      Note  

      This option can cause an error when you load the custom device in VeriStand.

    7. Click OK.
  3. Create an Engine source distribution.
    1. In Project Explorer, right-click Build Specifications and select New»Source Distribution.
    2. In the My Source Distribution Properties dialog box, click Information, and enter the Build specification name as Engine.
    3. Enter a Destination directory.
    spd-note-note
    Note  

    Use the same Destination directory as the Configuration source distribution. Using one directory makes it easier to distribute the custom device.

    1. Click Source Files and determine which files to include and exclude.
    2. Click Destinations and set the Destination type to LLB.
    3. Click Additional Exclusions, and disable Modify project library file after removing unused members.
    4. Click OK.
  4. Save the LabVIEW project.
  5. Right-click Build Specifications and select Build All.
After building the custom device, distribute it.

Recently Viewed Topics