build-application

将指定应用程序生成为二进制文件。

要从CLI生成应用程序,请使用以下语法:

        
          labviewnxg.cli build-application -p <relative or absolute location of the project> -n <name of the application> -t <SystemDesigner target containing the application> -s
      

例如:

        
          labviewnxg.cli build-application -p "C:\LabVIEW Projects\Project.lvproject" -n "Application.gcomp" -t "PXI Controller" -s
      
注: 如要使用build-application操作,用于生成的机器必须具有应用程序生成器许可证。
下表列出了该操作可用的参数。
参数 必需 说明 范例
  • -p
  • --path=VALUE
指定包含要生成的应用程序的项目的相对路径或绝对路径。
  • -p "C:\LabVIEW Projects\Project.lvproject"
  • --path="C:\LabVIEW Projects\Project.lvproject"
  • -n
  • --name=VALUE
指定要生成的应用程序的名称。
  • -n "Application.gcomp"
  • --name="Application.gcomp"
  • -t
  • --target=VALUE
如项目包含SystemDesigner终端,则该参数为必需。 指定包含要生成的应用程序的SystemDesigner终端。

在编辑器中打开应用程序并单击选择终端下拉列表来查看支持的终端。

  • -t "This Computer"
  • --target="This Computer"
  • -s
  • --save
生成后保存应用程序和项目文件。

在应用程序中选择自动递增生成版本时使用该参数。