LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure help

Hello everybody,

I am working on Labview and i used even structure but i have a problem.

When I change a value, it appears in the indicator but when I change another value, it does not keep in mind the old one.

I would like to enter each value in the settings, but this is not possible, it keeps in memory that the last value entered. There must be some subtlety, but I don’t have it.

Do you have an idea ?

Have a nice day

 

0 Kudos
Message 1 of 4
(2,309 Views)

Capture.PNG

Look at those output tunnels.  Visually, they show that they have "Use Default if Unwired" selected.  Your vi is not "Remembering" old values, it simply is displaying the "Default" values to every indicator that has nothing with any value wired to it in the executed event case.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(2,295 Views)

thanks you for you reply,

yes you are right,

I tried to put in a loop and do a decalage log, but you’re right. you must remove the use of default value and all code, even in the timeout window.

this is my VI if it can be used.

 

0 Kudos
Message 3 of 4
(2,277 Views)

So, let's get rid of all those ugly local variables and simplify your code to the exact same functionality EXCEPT, with a STOP feature that does not depend on using the "Abort" button:)

Capture.PNG

What did you REALLY want to do?


"Should be" isn't "Is" -Jay
Message 4 of 4
(2,242 Views)