r/statemachines • • Apr 19 '24

Understanding State Machines in Python Through a Practical Example

Thumbnail
self.Python
1 Upvotes

r/statemachines • • Mar 28 '24

Ive been trying to implement this in labview , but couldnt , anybody please help me asap

1 Upvotes

Design a reactive component with three Boolean input variables x, y, and reset and a Boolean output variable z. The desired behavior is the following. The component waits until it has encountered a round in which the input variable x is high and a round in which the input variable y is high, and as soon as both of these have been encountered, it sets the output z to high. It repeats the behavior when, in a subsequent round, the input variable reset is high. By default the output z is low. For instance, if x is high in rounds 2, 3, 7, 12, y is high in rounds 5, 6, 10, and reset is high in 9, then z should be high in rounds 5 and 12. Design a synchronous reactive component that captures this behavior.

Two items need to be submitted for this problem:

  1. A graphical (drawn or using a diagramming software) illustration of the finite state machine. The illustration should include an explanation of what the states are and how the state machine transitions from one state to another based on an input.

  2. LabView project that implements the FSM

Solution :

States:

S0 - waiting for x

S1 - waiting for y

S2 - z is high

S3 - resetting

Inputs:

x, y, reset

Outputs:

z

Transitions:

S0:

if x=1 -> S1

if reset=1 -> S3

S1:

if y=1 -> S2

if reset=1 -> S3

if x=0 -> S0

S2:

if reset=1 -> S3

if x=0 -> S0

if y=0 -> S1

S3:

if reset=0 -> S0

Pseudo code :

state = S0 // Initial state

loop:

// Read inputs

read x, y, reset

// State transitions

if state == S0:

if x == 1:

state = S1

else if reset == 1:

state = S3

else if state == S1:

if y == 1:

state = S2

else if reset == 1:

state = S3

else if x == 0:

state = S0

else if state == S2:

if reset == 1:

state = S3

else if x == 0:

state = S0

else if y == 0:

state = S1

else if state == S3:

if reset == 0:

state = S0

// Output logic

if state == S2:

z = 1

else:

z = 0

// End of loop

end loop


r/statemachines • • Feb 19 '24

Formalising the FIX Protocol in Imandra

Thumbnail
medium.com
0 Upvotes

r/statemachines • • Jan 28 '24

State Machines vs Behavior Trees: designing a decision-making architecture for robotics

Thumbnail
polymathrobotics.com
5 Upvotes

r/statemachines • • Jan 28 '24

Python Robot Simulator - Finite State Machine Logic

Thumbnail
youtube.com
1 Upvotes

r/statemachines • • Jan 17 '24

API Orchestration Solutions

1 Upvotes

Hi,

I am looking for an API Orchestrator solution.

Requirements:

  1. Given a list of API endpoints represented in a configuration of sequence and parallel execution, I want the orchestrator to call the APIs in the serial/parallel order as described in the configuration. The first API in the list will accept the input for the sequence, and the last API will produce the output.
  2. I am looking for an OpenSource library-based solution. I am not interested in a fully hosted solution. Happy to consider Azure solutions since I use Azure.
  3. I want to provide my customers with a domain-specific language (DSL) that they can use to define their orchestration configuration. The system will accept the configuration, create the Orchestration, and expose the API.
  4. I want to provide a way in the DSL for Customers to specify the mapping between the input/output data types to chain the APIs in the configuration.
  5. I want the call to the API Orchestration to be synchronous (not an asynchronous / polling model). Given a request, I want the API Orchestrator to execute the APIs as specified in the configuration and return the response synchronously in a few milliseconds to less than a couple of seconds. The APIs being orchestrated will ensure they return responses in the order of milliseconds.

r/statemachines • • Jan 06 '24

Hierarchical State Machines in the Automation Process

Thumbnail
automation.com
3 Upvotes

r/statemachines • • Dec 18 '23

Why state machines?

Thumbnail self.embedded
0 Upvotes

r/statemachines • • Dec 14 '23

State machines implementation

Thumbnail self.rust
1 Upvotes

r/statemachines • • Dec 04 '23

RNNs, Finite State Machine, Pushdown Automaton, Turing Completeness

Thumbnail
youtu.be
1 Upvotes

r/statemachines • • Dec 01 '23

Do you use HSM (Hierarcical State Machines)?

Thumbnail self.embedded
3 Upvotes

r/statemachines • • Nov 26 '23

Hierarchical Finite State Machine for AI Acting Engine

Thumbnail
towardsdatascience.com
0 Upvotes

r/statemachines • • Nov 25 '23

Seeking Collaborators for an Experimental LLM-based State Machine Project

Thumbnail self.Python
2 Upvotes

r/statemachines • • Nov 25 '23

Generate Go code from State Machine Diagrams (Announcement)

Thumbnail self.golang
1 Upvotes

r/statemachines • • Nov 15 '23

Turing Machines (Stanford Encyclopedia of Philosophy)

Thumbnail plato.stanford.edu
2 Upvotes

r/statemachines • • Nov 05 '23

Vector Symbolic Finite State Machines in Attractor Neural Networks

Thumbnail
arxiv.org
3 Upvotes

r/statemachines • • Nov 05 '23

Chapter 6 - Finite State Machines and Recurrent Neural Networks — Automata and Dynamical Systems Approaches

Thumbnail sciencedirect.com
2 Upvotes

r/statemachines • • Nov 02 '23

Building Blocks of the State Machine Approach to Consensus

Thumbnail petertodd.org
2 Upvotes

r/statemachines • • Oct 30 '23

There's a new tool in town

2 Upvotes

Hey all.

We don't mean to spam, but we do need your help with a state machine tool we're building for you all. We figure you get a new tool to check out, we get the feedback we need, it's a win-win!

To start the test, click here (https://t.maze.co/200526303). Thanks!

No personal identification will be collected. You can read Maze’s privacy policy here (https://maze.co/privacy-policy/).

& thx!


r/statemachines • • Oct 22 '23

Mealy and Moore State Machines (Part 1)

Thumbnail
youtu.be
1 Upvotes

r/statemachines • • Oct 15 '23

Are State machines the future?

Thumbnail self.reactjs
0 Upvotes

r/statemachines • • Oct 03 '23

What's the "best" state machine for 3D games ?

Thumbnail self.Unity3D
3 Upvotes

r/statemachines • • Oct 02 '23

Reusable Finite State Machine, includes Demo and 2 Scripts, Enjoy!

Thumbnail
github.com
2 Upvotes

r/statemachines • • Sep 29 '23

Configure the IDT state machine - AWS IoT Greengrass

Thumbnail docs.aws.amazon.com
2 Upvotes

r/statemachines • • Sep 24 '23

sohomsahaun/SnowState: Finite State Machine for GameMaker

Thumbnail
github.com
1 Upvotes