Table Of Contents

Importing LabVIEW NXG Hardware Configurations

Last Modified: November 6, 2020

Configure a custom execute to import a hardware configuration file (.nihwcfg) for LabVIEW NXG after installing a package.

Before you begin, ensure that the package for the NI Hardware Configuration Importer is installed on the target computer. The custom execute assumes that the importer is installed on the target before installing the package that contains the custom execute. Install the importer with LabVIEW NXG, or you can configure the package to install the importer by adding a dependency on its package.
  1. Select a package from the Packages pane.
  2. Navigate to Custom executes in the Properties pane and click the […] button to open the Manage Custom Executes dialog box.
  3. In the Root drop-down menu, select [National Instruments Shared (32-bit)].
  4. Set the Executable Path to the portable configuration task creation executable:
    Portable Configuration\nihwcfgTaskCreate.exe
  5. In the Arguments field, use the following arguments to import your configuration:
    -reboot=%rebootpending% -mode merge -interaction [always] -exit [none] -report none "%desktop%\testprj.nihwcfg"

    LabVIEW NXG allows you to modify the following flags:

    Flag Description Values
    –interaction Resolves conflicts if the hardware configuration fails to apply to the target.
    • always
    • none
    –exit Specifies if the hardware configuration dialog automatically closes upon completion if there are no conflicts.
    • success
    • none
  6. Click OK.
  7. Select Build»Build All Packages.
After you import the LabVIEW NXG hardware configuration file, install the built package on the target computer to ensure that the custom execute runs correctly.

Recently Viewed Topics