State Diagram Application  - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 26, 2020, 07:16:56 pm
content: 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.

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 26, 2020, 07:53:41 pm
content: 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

author: tggzzz
author_rank: Super Contributor
timestamp: July 26, 2020, 08:12:55 pm
content: 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?

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 26, 2020, 08:32:50 pm
content: Quote from: tggzzz on July 26, 2020, 08:12:55 pmPretty picture to the code. I don’t need round trip capability.

author: tggzzz
author_rank: Super Contributor
timestamp: July 26, 2020, 08:40:56 pm
content: 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.

author: matrixofdynamism
author_rank: Regular Contributor
timestamp: July 27, 2020, 12:01:54 am
content: ActiveHDL has a feature where we draw the state machine diagram and then can generate the code from it.

author: rstofer
author_rank: Super Contributor
timestamp: July 27, 2020, 02:07:33 am
content: yfd will draw nice diagrams but it knows nothing about state and it certainly won't write code.https://www.yworks.com/

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 27, 2020, 03:33:07 am
content: Quote from: rstofer on July 27, 2020, 02:07:33 amThat’s all I need. Thanks.

author: Someone
author_rank: Super Contributor
timestamp: July 27, 2020, 08:57:36 am
content: Plenty of simple tools for just state diagrams, but a more general solution which does arrows between boxes in wysiwyg:https://www.diagrams.net

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 27, 2020, 02:22:09 pm
content: Quote from: Sal Ammoniac on July 27, 2020, 03:33:07 amNote 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.

author: enz
author_rank: Regular Contributor
timestamp: July 27, 2020, 02:28:26 pm
content: There is also plantumlhttps://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.