Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203131

Re: Help with state machine

$
0
0

Hi Sindhurakshak,

 

You're welcome. I believe the problem still lies on the Event Structure at the "OTP" state. I can suggest the following (let's say everything still ends up to OTP from what I understand from your current code):

 

Remove the select and create an additional Event case for "end" boolean switch. Place the enum for terminate in that case as shown below:
State 1.JPG
The above modification means that if "end" boolean switch value is changed (presuming that it will change to true), the event case will run the "end" event case which will then pass the "Terminate" enum value to the shift transition. Let's say that if "end" boolean button has not changed (meaning has not been pressed), It should run the rest as shown below:
state 2.JPG

state 2.JPG

state 4.JPG

 

I'll leave the "OTP" enum value in Timeout, presuming that you want the state to still run the "OTP" state when idle unless you press the "end" button to trigger the "Terminate" transition.  

 

Hope it helps

 

Warmest regards,

Lennard.C


Viewing all articles
Browse latest Browse all 203131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>