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

UseStackVariables Code Generation Attribute (Microprocessor SDK)

LabVIEW 8.6 Microprocessor SDK Help
June 2008

NI Part Number:
372197B-01

»View Product Info

Type: Boolean

Default: FALSE

Determines whether to use stack variables to represent wires in the generated C code. Set UseStackVariables to TRUE to use stack variables.

C stack variables cannot represent wires that execute parallel While Loops or For Loops because more than one C function can access wire values. However, if GenerateSerialOnly is TRUE, you can use stack variables because the LabVIEW C Code Generator generates the entire VI block diagram as one C function. The C compiler you use might be able to make more optimizations in the C code, which can result in a faster executable if the stack is large enough for the variables.

Note  If you set UseStackVariables to TRUE, you also must set GenerateSerialOnly to TRUE.

Resources


 

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