Code generation options define how the LabVIEW C Code Generator generates C code. A VI Server call translates the VI hierarchy into C code. The LabVIEW C Code Generator generates each VI in the VI hierarchy into a separate C file using a C function name, which is more restrictive than a VI name, when a user builds an embedded VI into an embedded application. Any non-alphanumeric characters become underscores. If the VI name begins with a non-alphanumeric character, the LabVIEW C Code Generator prepends A_ to the beginning of the C function name.
This VI Server call also generates the following header files when a user builds an embedded VI into an embedded application.
The input to this VI Server call is a variant that contains attributes (name, value pairs) that determine how the LabVIEW C Code Generator generates the C code from the block diagram. Any attributes you do not set use the default value.
Many attributes determine how LabVIEW generates the C code. Most of the attributes are optimizations that make the generated C code smaller and run faster. The generated C code might differ in behavior from VIs you create under the My Computer target, which runs on Windows.
![]() | Note This VI Server call is licensed. The user must have a valid, activated Microprocessor SDK license to generate C code for the target you are creating. |