11-30-2010 03:48 AM
Hi, i have a problem with my .vi...
i have an array of 10 boolean i want to modify by pressing SET TRUE or SET FALSE buttons, after selecting (with the ring selector) which is the elemente that should be changed...
there seems to be something strange in the behaviour... the array is not correctly updated... maybe there a big mistake i cannot find... 😞
i hope you could help me
tks 😄
11-30-2010 03:55 AM
11-30-2010 10:08 AM
The problem is the the Ring control is read before the event structure, so it return "old" data when you click of either SET TRUE or SET FALSE.
You need to move it so that it is read inside the event structure after you click on one of the "SET" buttons.
Create a local of the Ring for one of the SET events and move the Ring terminal into the other.
Or create a blank event for the Ring control so that it will update the input tunnel going into the event structure.
Or create a single event to handle both SET TRUE and SET FALSE.