From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

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

读取测量文件和For循环

大家好,我用“读取测量文件”这个VI,读完数据后使用For循环进行分析,但是每次运行结果都不一样。已经使用了“反馈节点”放在循环内部,说明如附图(仅为解释用,并非元程序)
shuoming2.png
感谢您的任何回复!
Any reply is appreciated!
0 项奖励
1 条消息(共 2 条)
2,901 次查看

While not sure what the function (within for-loop) is doing, may I suggest that the Array Size of the Array (DBL) input to the for-loop (with auto-indexing enabled) is taken and wire to the input of "-1" instead of using the numerical value '80'.

 

This way, it can be sure that the for-loop is running to the size of the input array.

 

PS1: when an array is wired to a for-loop with indexing enabled, wiring an number to N is not necessary.

PS2: error may occur should the input array size is not equal to i.e. 80

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