因为需要对40M无符号16位数据逐点计数,我在LabVIEW下做了一个1000*20000的循环,也就是循环1000次里嵌套20000循环,空循环运行速度很快,但是只要在循环内加一点点运算,比如,+1运算,速度一下就慢了。完成整个运算大概需要几十秒。
两个图显示程序运行时间差别很大。我用C完成类似运算,大概需要几秒的时间。想问问我的LV程序是不是有问题或者是其他原因。
谢谢!!
Just a quick one... (without understanding what you wished to achieve)
Try replace the "adding" using shift-register, instead of reading from its property node.
If allowed, do not update the indicator as well.