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.
-
Select a package from the Packages pane.
-
Navigate to Custom executes in the Properties pane and
click the […] button to open the Manage Custom
Executes dialog box.
-
In the Root drop-down menu, select [National Instruments Shared
(32-bit)].
-
Set the Executable Path to the portable configuration task creation executable:
Portable Configuration\nihwcfgTaskCreate.exe
-
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.
|
|
–exit |
Specifies if the hardware configuration dialog
automatically closes upon completion if there are no
conflicts.
|
|
-
Click OK.
-
Select .
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.