Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

for (MathScript RT Module Keyword)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: programming

Requires: MathScript RT Module

Syntax

for variable = expression

Description

Performs a for loop. The principle calling structure of a for loop is:
for variable = expression
     statement1,
     ....
     ....
     statementn,
end
If the expression is a vector, LabVIEW executes the for loop once for each element. If the expression is a matrix, LabVIEW executes the for loop once for each column.

Examples

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 1
for X = 1:1:10
     A = A+1
end

Related Topics

break
continue
return
while


 

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