12-20-2010 10:13 AM
Hi,
You can specify the priority level on timed loop on real time target. If I use both timed loop and while loop what is the priority of the while loop? Always lower than timed loop?
Thanks!
Regards,
Tom
12-20-2010 10:28 AM
@tom_z wrote:
Hi,
You can specify the priority level on timed loop on real time target. If I use both timed loop and while loop what is the priority of the while loop? Always lower than timed loop?
Thanks!
Regards,
Tom
Depends.
Is the while loop in a trime critical VI?
Is the while loop inside a timed seq diagram (that can be used in the smae way as the Timed Loop priority).
Ben
12-20-2010 10:32 AM
If the while loop is not in any timed structure such as timed loop and sequence will it have lower priority compared to any timed structure?
Thanks!
Regards,
Tom
12-20-2010 10:34 AM
Tom,
You may find this document helpful for understanding how priorities work between timed loops and VIs on RT:
http://zone.ni.com/reference/en-XX/help/370622H-01/lvrtbestpractices/rt_priorities/
A regular while loop will have the priority of the VI that calls it (background, normal, above normal, high, time-critical, above time-critical). All timed loops have a priority above "high" and below "time-critical". It is generally recommended that you use either timed loops or VI priorities to prioritize your application, but you should not use both strategies together because it can cause a good deal of confusion.
Chris M
12-20-2010 01:37 PM
Hi Chris,
Thanks for help. It is very clear.
Tom