Error Code: 1370 When Building LabVIEW FPGA Project With Command Line Interface

Updated Apr 8, 2025

Reported In

Software

  • LabVIEW
  • LabVIEW FPGA Module

Issue Details

When I'm trying to build a LabVIEW FPGA project using the command line interface (CLI) for LabVIEW I'm getting the following error:

 

LabVIEWCLI started logging in file: C:\Users\AppData\Local\Temp\lvtemporary_346158.log
"LabVIEWPath" command line argument is not passed. Using last used LabVIEW: "C:\Program Files (x86)\National Instruments\LabVIEW 2019\LabVIEW.exe"
Connection established with LabVIEW at port number 3363.

Operation output:
Error Code : 1370
Error Message : mxLvErrorHandler.vi:2660001
An error occurred while running the ExecuteBuildSpec operation.

ExecuteBuildSpec operation failed.

Solution

The 1370 error code indicates that the selected build failed to complete, which is expected as the LabVIEW CLI uses the NI Application Builder API which does not support FPGA build specifications.

To automate the build process with LabVIEW CLI follow the instructions below:

  1. Copy the niFpga_BuildFromBuildSpecification.vi from the C:\Program Files\National Instruments\<LabVIEW version>\vi.lib\rvi\ClientSDK\Core\Compilation\niFpga_BuildFromBuildSpecification.vi
  2. Adapt that copy to build the FPGA build specification
  3. Call that new VI with LabVIEW CLI

Additional Information

It is also possible to define custom operations for the LabVIEW CLI with this guide: Creating Custom Command Line Operations.