Olivier66,
I made some changes to your programs. Here's how it works:
- Two "user events" are generated before the while loop starts. They are called led and bouton.
- In the event structure, there are events for
Boolean 2, which is a front panel control.
- When the value of
Boolean 2 changes, then the led user event is generated, by the Generate User Event.VI. The value of
Boolean 2 is passed in as the value
- The Event case, <led>: User Event is then fired. This event is fired becaus the Generate User Event.VI was called.
- I modified your led user event.vi to accept an input, and then pass it to its output.
- The value passed into the led user event, which is the value of
Boolean 2, is then passed into your led user event.VI,
- This value is then pased back out, and populates
Boolean, which is your front panel LED.
I hope that this helps.
Respectfully,