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

for (MathScript RT Module Keyword)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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

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