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. |