Jump to content

Arrays and Strings in Loops

From LabVIEW Wiki
Revision as of 06:59, 20 August 2024 by Logmanoriginal (talk | contribs) (Mark as stub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Arrays and Strings in Loops

Arrays and Strings in Loops is a VI Analyzer test installed by the LabVIEW VI Analyzer Toolkit add-on. It checks for loops and while loops and reports errors if they contain Build Array or Concatenate Strings functions.

Explanation

Build Array and Concatenate Strings functions should be avoided in loops because the array or string must be dynamically resized on every iteration, which increases memory and CPU usage.

Limitations

This test does not check timed loops.