06-10-2010 02:33 PM
ritesh024 wrote:
DFGray wrote:The reason your timing changes when you convert your control to a constant is that you are timing the write to the control as well as the write to the cluster. Look carefully at your data flow. It has a couple of major issues in the timing.
the constant cluster i mentioned is not the indicator in the end, but at the starting. in the vi i posted its already a constant so the timing of the vi would be very low(0 ms). but if i change the starting constant cluster to a control, the timing increases enormously.even with the same data flow, changing the starting constant cluster to a control should not effect the timing. but it does.
Are you watching those buffer allocations?
Changing to a control invokes a lot of different things amoung which is folding. If the answer to your code can be determined when you edit the VI, LV will compute the final answer and use the answer instead of the code. That is fast.
When you switch to a control, LV does not know what will be in that control when you edit the VI so it can't fold the code.
So I believe IT SHOULD EFFECT THE TIMING.
Ben