View Single Post
  #3   Spotlight this post!  
Unread 15-01-2009, 11:17
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabView dashboard/live telemetry

I should have added the suggestion from Chaos in a Can to my earlier post. That's a VALUABLE lesson in LabVIEW development (and, I'd imagine, any multi-threading application that needs to share time in an OS).

You should always make sure that loops only execute at a reasonable rate. Without adding an intentional delay within a while loop or using a timed loop (which does this for you), the loop will execute at max speed and cause the OS and CPU to max out.

As an example, create a simple while loop with only an increment and display and then run it. You'll find that it will execute at a few MHz and cause your PC to slow down tremendously. Add a 1ms wait in the loop to force it to execute at 1kHz and everything will be fine.

Russ
Reply With Quote