08-19-2021 06:37 AM
Hello, I'm new to Labview and I'm having some problems understanding how to use the Event Structure. Let's say I have a VI with a while loop updating at each iteration a variable X (which is shared because I will have to send it to another VI). I inserted an Event structure because I would like that when the user changes the value of the boolean 'Reset' in the front panel, then the variable X is set to zero and the while loop starts updating X from zero again, but this is not working, what am I doing wrong? I attach a snippet of the VI.
Thanks for any advice and/or correction of the code
Solved! Go to Solution.
08-19-2021 06:52 AM - edited 08-19-2021 06:53 AM
Hi Alef,
@Alefbb wrote:
I would like that when the user changes the value of the boolean 'Reset' in the front panel, then the variable X is set to zero and the while loop starts updating X from zero again, but this is not working, what am I doing wrong?
You are doing a lot of thing wrong:
08-19-2021 07:48 AM
Thanks a lot, I managed to make the code work as expected!