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

for (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the programming class.

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


Resources


 

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