03-06-2023 03:40 AM
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?
03-06-2023 04:41 AM
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
03-06-2023 05:09 AM
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).
03-06-2023 09:43 AM
@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?
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.
03-07-2023 03:55 AM
@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).