DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DQMH + State machine

Solved!
Go to solution

does this make sense?

 

I have 12 DQMH cloneables that are running when a user presses "start test". The test sequence is very sequential where its just write a message, read a message, decode a message, pass/fail based on decoded message etc. 

 

I was thinking of having the EHL handle the public requests to start,stop,pause, abort test etc. The MHL would then wake up a state machine loop which is sitting below by sending a user event to wake up. The state machine would just run through its sequential steps over and over until a fail or time expires. I was thinking of putting a JKI state machine below the MHL.

 

Right now I have 5 loops which are EHL, MHL, Write command helper loop, Read helper loop, decode helper loop. They are running somewhat asynchronously.

0 Kudos
Message 1 of 3
(2,423 Views)
Solution
Accepted by topic author PatrickMiller

Yes, that makes sense. I've done something very similar, the MHL wakes up a helper loop to start a state machine. In my case it was a Simple State Machine, but otherwise the same as your scenario.

Message 2 of 3
(2,418 Views)

Thank you this worked and solved some of my issues. 

0 Kudos
Message 3 of 3
(2,357 Views)