From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Delay/Reset

Hello everyone,

 

I have a very simple question regarding case structures and calling constants out of them to an output value.

 

I'm using a slider to change my motor from Forward, Reverse, and Stop Position. The problem is when I run the program I can't switch from say like Forward => Backward. If it begins on "forward" it will stay forward until I stop the program or turn off the power supply

 

Does anyone know how to fix this problem? I know it has to do something with delay or something. I'll attach a picture of my VI.

 

Thanks

Justin

Download All
0 Kudos
Message 1 of 3
(2,966 Views)

It has to do with 'or something'. It has nothing at all to do with delay. Your control is outside the loop. The only time it is read is when you start the VI. Simply place it inside the loop. It would be far better to use an event structure though.

 

You might want to look into the free LabVIEW tutorials.

Message 2 of 3
(2,952 Views)
god I feel stupid. Thanks.
0 Kudos
Message 3 of 3
(2,949 Views)