LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event structure problem in updating array

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 😄

0 Kudos
Message 1 of 3
(2,655 Views)

Hi,

 

This is because you didn't specify a timeout value for your event structure. This way, it never times out ! And then the values are not well updated.

 

extract.png

 

If you wire a constant then it will be ok.

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 Kudos
Message 2 of 3
(2,652 Views)

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.

Omar
0 Kudos
Message 3 of 3
(2,627 Views)