You now can allocate constants for arrays, clusters, strings, variants, and waveforms with build options on the Application Information page in the Build Specification Properties dialog box.
Using stack variables overrides constant allocation. If you place a checkmark in the Use stack variables checkbox, Allocate constants is always First Use and Deallocate constants is always Out of Scope. First Use and Out of Scope was the default behavior in previous versions.
- Allocate constants—Specifies when LabVIEW allocates memory for
constants.
- First Use—Allocates memory the first time you use constants on the block diagram.
- Containing Loop—Allocates memory outside of the loop that contains constants.
- VI Initialization—Allocates memory when the VI that contains
the constants is called.
- Application Initialization—Allocates memory when the built
application begins running on the target.
- Deallocate constants—Specifies when LabVIEW frees memory
resources for constants.
- Out of Scope—Frees memory resources when the constants are
no longer used.
- VI End—Frees memory resources when a VI containing
constants finishes executing.
- Application End—Frees memory resources when the built
application finishes executing on the target.