Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Defining Code Generation Options (Microprocessor SDK)

LabVIEW 8.6 Microprocessor SDK Help
June 2008

NI Part Number:
372197B-01

»View Product Info

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.

  • LVForms.h contains declarations for the entry point functions for each VI.
  • LVGlobs.h contains declarations for global initialization functions and data type information used throughout the embedded application.
  • LVISRList.h contains a list of Interrupt Service Routines (ISRs).
  • LVFuncsUsed.h contains usage information to support source-level dead stripping.
  • LVDebugTable.h contains lookup information for serial, TCP/IP, and CAN debugging.

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.

Resources


 

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