Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Generating C Code from the Command Line (C Generator)

LabVIEW 2011 C Generator Help

Edition Date: June 2013

Part Number: 373144C-01

»View Product Info

You can use lvcg.exe from the command line to generate C code. The lvcg utility is useful if you want to create a makefile that regenerates C code when you modify the project. The output of the lvcg utility is the same as using a C Code Generation build specification to generate C code.

From the command line, enter the following commands to run the lvcg utility.

lvcg [-options] project pathbuild specification name

project path is the destination directory to save the generated C code. build specification name is the name of an existing C Code Generation build specification. You can use the -override-destination option to generate the C files in the current working directory instead of the destination directory specified in the build specification.


 Was this document helpful?  submit
  Helpful Not Helpful