Action commands during state transitions

Hi

I am modeling an estimator, where the angle should get reset, once a certain condition (minimum speed) is satisfied.

On the transition arrow dialog box in the state-machine block there are 3 things that a user can specify

Trigger (works)

Condition (Seem redundant, because an && in the trigger condition would achieve the same thing)

Action (No example of how this is to be used)

Could someone tell me how to create a 1 time reset on a transition ?

Thanks

Srinath

Hi Srinath,

To achieve what you’re attempting, I believe the state-machine example provided in the demo model titled “Buck Converter with Constant On-Time Control”, could be modified. I created a simple model for you. Please find it attached.

An explanation for “Trigger”, “Condition” and “Action” is provided in the tutorial here – https://www.plexim.com/sites/default/files/tutorials/finite_state_machine.pdf, on pages 4 and 5.

Regards,Manu

state_machine_example.plecs (15.3 KB)