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

Defining C Code Generation Options (C Generator)

LabVIEW 2011 C Generator Help

Edition Date: June 2013

Part Number: 373144C-01

»View Product Info

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit