Defining C Code Generation Options (C Generator)
- Updated2023-02-21
- 2 minute(s) read
From a LabVIEW block diagram, the C Generator creates ANSI C code that you can compile on many targets. When you generate C code from an exported VI, LabVIEW traverses the block diagram and generates simple C primitives if possible. For example, the C Generator converts While Loops to while() statements and converts the Add function to a simple C operation. However, a straight mapping is not possible for more complex functions so the C Generator uses the LabVIEW C Code Run-Time Library, which is analogous to the LabVIEW Run-Time Engine. The LabVIEW C Code Run-Time Library contains such things as data manipulation and math functions. The C Generator includes the source code for the LabVIEW C Code Run-Time Library.
You can use the C Code Generation Settings page of the C Code Generation Properties dialog box to specify C code generation settings and optimizations for all VIs in the hierarchy of the exported VI. You also can use the Source File Settings page of the C Code Generation Properties dialog box to specify individual C code generation options for each VI in the hierarchy of the exported VI.
|
|
To view related topics, click the Locate button, shown at left, in the toolbar at the top of this window. The LabVIEW Help highlights this topic in the Contents tab so you can navigate the related topics. |
