Jump to content

Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=72

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

Link to post
Share on other sites
  • 3 years later...

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).

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.