Author Topic: State Diagram Application  (Read 1413 times)

0 Members and 1 Guest are viewing this topic.

Offline Sal AmmoniacTopic starter

  • Super Contributor
  • ***
  • Posts: 1764
  • Country: us
State Diagram Application
« on: July 26, 2020, 07:16:56 pm »
Anyone know of a Windows application that can be used to draw state diagrams? (Classic state diagrams—not UML-style ones.)

Years ago I used to do this using Visio, but that was tedious as it was a manual process. I’d something a little more automated.
"That's not even wrong" -- Wolfgang Pauli
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15574
  • Country: fr
Re: State Diagram Application
« Reply #1 on: July 26, 2020, 07:53:41 pm »
Some people have already mentioned graphviz lately - it's interesting if you want automated generation from description files: automatic, but no UI, no manual placement, etc.

https://graphviz.gitlab.io/

Otherwise, I've tried a lot of stuff. Used Dia years ago. http://dia-installer.de/
Not particularly great, but useful and could export to many formats including EPS (which I needed.)

These days, I tend to use yED graph editor, which is pretty decent: https://www.yworks.com/products/yed
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 20930
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: State Diagram Application
« Reply #2 on: July 26, 2020, 08:12:55 pm »
Do you intend to go from the pretty picture to the code, or the code to the pretty picture? Or do you want round trip capability?
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Sal AmmoniacTopic starter

  • Super Contributor
  • ***
  • Posts: 1764
  • Country: us
Re: State Diagram Application
« Reply #3 on: July 26, 2020, 08:32:50 pm »
Do you intend to go from the pretty picture to the code, or the code to the pretty picture? Or do you want round trip capability?

Pretty picture to the code. I don’t need round trip capability.
"That's not even wrong" -- Wolfgang Pauli
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 20930
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: State Diagram Application
« Reply #4 on: July 26, 2020, 08:40:56 pm »
Now, what about all the bits that aren't pretty?

Classic examples would be the code for the actions executed in response to the events.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline matrixofdynamism

  • Regular Contributor
  • *
  • Posts: 200
Re: State Diagram Application
« Reply #5 on: July 27, 2020, 12:01:54 am »
ActiveHDL has a feature where we draw the state machine diagram and then can generate the code from it.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9944
  • Country: us
Re: State Diagram Application
« Reply #6 on: July 27, 2020, 02:07:33 am »
yfd will draw nice diagrams but it knows nothing about state and it certainly won't write code.

https://www.yworks.com/
 

Offline Sal AmmoniacTopic starter

  • Super Contributor
  • ***
  • Posts: 1764
  • Country: us
Re: State Diagram Application
« Reply #7 on: July 27, 2020, 03:33:07 am »
yfd will draw nice diagrams but it knows nothing about state and it certainly won't write code.

https://www.yworks.com/

That’s all I need. Thanks.
"That's not even wrong" -- Wolfgang Pauli
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 5067
  • Country: au
    • send complaints here
Re: State Diagram Application
« Reply #8 on: July 27, 2020, 08:57:36 am »
Plenty of simple tools for just state diagrams, but a more general solution which does arrows between boxes in wysiwyg:
https://www.diagrams.net
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15574
  • Country: fr
Re: State Diagram Application
« Reply #9 on: July 27, 2020, 02:22:09 pm »
yfd will draw nice diagrams but it knows nothing about state and it certainly won't write code.

https://www.yworks.com/

That’s all I need. Thanks.

Note that yEd can save to most common standard graph file formats (such as GML, GraphML...) which are simple and documented.
So you could even write some kind of translator from the graph file to source file/code skeleton/whatever. Such tools may already exist, I didn't look that up.
 

Offline enz

  • Regular Contributor
  • *
  • Posts: 134
  • Country: de
Re: State Diagram Application
« Reply #10 on: July 27, 2020, 02:28:26 pm »
There is also plantuml https://plantuml.com/
I use it quite a lot to give small documentation hints direct in the source code, because eclipse (and many other applications/editors) can display the resulting graphic directly.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf