LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does it affect the real time performance when running RT program with front panel open in project explorer

Hi,

 

    When developing RT program in project explorer and directly run the RT program with front panel open in project explorer how does it affect the real time performance? Will I still get a deterministic performance? Will it make all timed loop slower or no effect? If I don't get a finish late error in front panel does it mean the loop finished within the period?

 

    Tom

0 Kudos
Message 1 of 4
(2,311 Views)

Hi Tom,

 

When you run a VI on a RT target from a development (host) computer, the VI communicates front panel updates to the host via a network protocol running in a low priority timed loop. This means that while it uses a few processor resources, it will not effect deterministic processes until you, almost completely, starve the target for resources.

 

Also, if the timed loop indicates that it finished on time, the code within the loop executed within the specified period. 

Hope this helps,

Fred Visser -- SystemLink R&D -- National Instruments
Message 2 of 4
(2,295 Views)

Hi Fred,

 

    What is the loop rate of the timed loop to update the front panel and how can I know the loop is not running late? The reason I ask is that when I run RT program from Project Explorer I found some shared variable were not updated correctly. But if I deploy the RT program I don't see this problem.

 

    Thanks for help!

 

    Regards,

 

    Tom

 

0 Kudos
Message 3 of 4
(2,284 Views)

Hi Tom,

 

Try taking the Finished Late? indicator from within the timed loop and connect that to a chart. In that way, you'll be able to look through the history of the loop and see if any iteration ever finished late. 

 

2010-12-15_0921.png

 

I've been trying to find further documentation, but the communication between the target and target front panel may not executed within a timed loop. In any case, that process will consume more resources depending on the amount and type of data on the front panel.

 

If you observe the target's CPU usage through the Distributed System Manager, do you see a difference running the VI with and without a front panel? What % of CPU are you consuming in either case?

What type of shared variables are your using? How is data written to those variables?

 

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 4 of 4
(2,274 Views)