NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

循环中数组的使用问题

已解决!
转到解答
我有一个数组,放在循环外,想在每次循环时,按照循环次数把数组中对应的序号的值输入到循环内部去,请问各位怎么实现?
0 项奖励
1 条消息(共 3 条)
4,130 次查看
解答
已被主题作者 wangl 接受

Hi

 

If the while-loop runs continously until user stopping it, Enable indexing will not work.

In that case, you need to find divide the iteration by the array size using Quotient & Remainder, and uses the Remainder to index out the corresponding array element.

 

Attached quick example code fyr.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 3 条)
4,125 次查看

Thank you very much! My Vi succeed!

0 项奖励
3 条消息(共 3 条)
4,120 次查看