for (MathScript RT Module Keyword)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助