0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RubyとLabVIEWのfor文 比較

Last updated at Posted at 2016-11-29

Ruby

for.rb
for count in 0..2 do
  puts count
  sleep 1
end
>ruby for.rb
0
1
2

LabVIEW

ブロックダイアグラムの配置

for文は 「N」で実行回数を指定する。以下の場合では三回実行する。
実行回数は「i」から取得できる。
※ 実行される一番最初は  i = 0 からスタートする

ブロックダイアグラム.jpg

パーツ

ブロック.jpg

参考URL

チュートリアル: ForループとWhileループ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?