微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 测试测量 > 虚拟仪器 > 数值控件的属性节点和局部变量有什么不同

数值控件的属性节点和局部变量有什么不同

时间:12-13 整理:3721RD 点击:
rt

属性节点只有属性为value时作用与局部变量相当

反了

作用相当,性能略差

Yes, you are right. Shift register is the best in a loop structure for data flow. Local variable is slower, and property node of "value" is the worst in terms of speed. Of course, if you only make one-time read/write for a simple control, the speed difference may not be so obvious.
However, a useful property node is "value(signaling)" to invoke an event.

property node有用的property多了去了……

这个作用相当,性能略差的结论是怎么得出来的?

Please run the attached example which I did for a colleague on the other day. This is done in LV 8.20. When you open the front panel, select a method from the ring, and set a quite large number to "iteration". Then run the VI to see how long the iterations take. Change the other two methods and run with the same iteration number, then you can compare their performance.

 shift_local_property.vi

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top