LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write tags in a loop taking longer time

I have got a while loop with a wait timer inside for 500 ms. In the while loop, i want to write tag values as well as read tag values of about some twenty tags every 500ms. But the execution is becoming very very slow. I have the tag engine started outside the loop.
What should I do?
Thank you
0 Kudos
Message 1 of 2
(2,473 Views)


Hello,

What's the timeout input to your read tag VIs? A value of zero will read immediately; -1 waits indefinitely for a new value, and a positive value waits so many seconds.

The other thing to check is the write value on change input to your write tag VIs. If this is set to true, your VIs will wait for a new value before writing.

Finally, you may want to debug your VI using the execution highlight mode and see where it's taking more time.

Hope this helps,

Khalid


0 Kudos
Message 2 of 2
(2,473 Views)