LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The priority level of while loop on real time target

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

0 Kudos
Message 1 of 5
(5,218 Views)

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(5,209 Views)

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

0 Kudos
Message 3 of 5
(5,207 Views)

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

Message 4 of 5
(5,202 Views)

Hi Chris,

 

    Thanks for help. It is very clear.

 

    Tom

0 Kudos
Message 5 of 5
(5,175 Views)