LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with state machine

Solved!
Go to solution

Hi! I've got a VI intended to control a storage tank. I've tried to do that by creating a simple state machine that changes the value(on/off) of some valves basing on 2 conditions:

-when a certain temperature reaches a pre-set value AND its derivative is <0, the state must change from on to off,

-when some time passes the state must change from off to on.

Unfortunately I can't get this work as it never changes state (e.g if I start with on always remain on "on" and viceversa).

Could you please tell me what I'm doing wrong? I'm attaching the screenshots of the 2 states.

Thanks!

Download All
0 Kudos
Message 1 of 4
(2,468 Views)
Solution
Accepted by topic author Turillo

It looks like your shift regsiter might not be wired correctly.

Message 2 of 4
(2,460 Views)

Hi Turillo

 

If you click the Cleanup Diagram button (little brush symbol) on the menubar you may be able to see better what's happening. Smiley Wink

 

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

Thank you all! I've solved my problem by both connecting the shift register as deceased connected and by connecting the enum control to the "if false" condition of the select block.

0 Kudos
Message 4 of 4
(2,376 Views)