LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is Blink a value change?

Hi, need to make a led blink and, while its blinking, use an event structure to trigger some events. Is the Blink property a value change or do i need to do make the led blink manually?

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

Its always better to share the piece of code you tried, which will help others to guide/suggest you in proper direction.

There are multiple ways to do the your requirement.

 

1. Use the Input of LED Blink to Value Signalling another Control who's event is registered.

2. you can also use User Events to trigger based on input of LED

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(1,153 Views)

I don't quite understand what's the relation between the LED blinking and the other events that should be triggered.

Anyway, when you set the Blink property to true, the boolean changes its appearance, not its value, so no event is generated. Of course, you may let the LEB blink by changing its colour or its value programatically (manually).

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 5
(1,141 Views)

@domcorrado wrote:

Hi, need to make a led blink and, while its blinking, use an event structure to trigger some events. Is the Blink property a value change or do i need to do make the led blink manually?


I think you have some misconceptions about the beauty of graphical code and the power of dataflow. Did you do all basic tutorials?

 

  • We don't know what you mean by "blink". There is a blinking property and there is just a temporary programmatic change from false to true.
  • Events are for controls and user interactions. LEDs are typically indicators.
  • Value change events don't trigger when updating an indicator (or updating controls via local variable or value property).
  • You can trigger a value change event using a signaling value property. In this case it triggers even if the new value is the same as the old value, i.e. it did not actually change! You need to know what you are doing.
  • Since your code updates the indicator, you can wire it also to a case structure where you can e.g. do some other things or even write to a queue that is then processed in a parallel loop.

 

If you would attach your VI, we will probably be able to show you a much better way to do whatever you are trying to do.

 

0 Kudos
Message 4 of 5
(1,098 Views)

@domcorrado wrote:

Hi, need to make a led blink and, while its blinking, use an event structure to trigger some events.


OK, post what you have if you want us to have a look.

 


@domcorrado wrote:

Is the Blink property a value change or do i need to do make the led blink manually?


The Blink property is no value change, just a change in appearance (that makes it blink). Note that some (system) controls don't blink.

 

If you want your LED blinking, you can set the blink property (manually). It won't change value though.

 

If you want to alternate the LED value, you need to do that manually. That is, you probably want to make some code that does it. Can't be too specific if there's confusion 😉.

 

If you want to get events when your code changes the LED value, you can use the value (signaling) property. If you don't you can use the terminal (if it's an indicator), a local or a property node (either linked to the control or with a reference).

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