LAVA 1.0 Content Posted July 25, 2009 Report Share Posted July 25, 2009 Name: BlinkingLED Submitter: LAVA 1.0 Content Submitted: 04 Jul 2009 Category: X-Controls LabVIEW Version: 8.6 Version: 1.0.0 License Type: BSD (Most common) Make this available on the VI Package Network?: Undecided Copyright © 2009, Martin Weiss. All rights reserved. Author: Martin Weiss --see readme file for contact information Description: Implements a blinking LED with adjustable blinking interval. The value of this XControl is the blinking interval in milliseconds. Minimal value allowed is 100ms. This XControl acts as an indicator only. Inspired by Aristos Queue's "Scrolling LED XControl" example. Many thanks for that! Dependancies: None Change Log: 1.0.0: Initial release. Click here to download this file Quote Link to comment
mtat76 Posted March 25, 2013 Report Share Posted March 25, 2013 The unfortunate aspect of this control is that (I believe) the call to the property node occurs on the UI thread. Therefore, if you have things going on in the user interface, or if you have multiple instances of this particular control, you will not get the blink rate that you are shooting for (and you will get some odd behavior). Quote Link to comment
Aristos Queue Posted March 28, 2013 Report Share Posted March 28, 2013 mtat76's concerns are true but irrelevant. No matter what you do, there is work going on in the UI thread, and any blinking LED is going to have to do some work in the UI thread in order to affect the UI. This is not an "unfortunate aspect", it's the way things are designed to work. LabVIEW timeslices the UI thread to all requesting parties. Can you do things that hang the UI? Sure. Such a hang will hang all of your UI processes, not just this XControl. By and large, when those processes occur, they are at times when your user is not paying any attention to the rest of the UI. Quote Link to comment
candidus Posted April 6, 2013 Report Share Posted April 6, 2013 As AQ pointed out it's unavoidable to do things in the UI thread. Did you see other odd behavior? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.