Read out the state of the state machine

114 Views Asked by At

experts ;) Working on the following problem. Have a state machine with the states A and B. State block 1 is called: A, info in the block: entry: A=1; State block 2 is called: B, info in the block: entry: A=0; Conditions for switching from A to B: Input(494)>494 & Input(631)<631 Condition for switching from B to A: Input(494)<494 & Input(631)>631 Input is a vector with 1000 values. The running time of the Simulink simulation is 1000 seconds. Scope only shows me 1 every time, but it should be 0 between 494 and 631.

Is anything wrong with the conditions??

0

There are 0 best solutions below