Graphing a HAL configuration

More
6 years 11 months ago #150485 by kentavv
Is there a nice way to graph HAL configurations? The HAL Configuration dialog in Axis is informative, but I thought graphing might be useful. I'd like a way to better understand and review my own HAL files but perhaps a different view would help others modify theirs. If a graphing tool not exists, I'd be glad to make an attempt to write one.

Please Log in to join the conversation.

More
6 years 11 months ago #150490 by tommylight
Have a look here, user Grotius did just that.

Please Log in to join the conversation.

More
6 years 11 months ago #150495 by kentavv
Is the following link to the right program? Thank you, I'll check it.

forum.linuxcnc.org/plasma-laser/34978-th...w-to?start=40#115472

Please Log in to join the conversation.

More
6 years 11 months ago #150496 by tommylight
Yes.

Please Log in to join the conversation.

More
6 years 11 months ago #150509 by pl7i92
Replied by pl7i92 on topic Graphing a HAL configuration
isent just the hal_show on pins a good as it showes al connected pins to eatch other
a graph may be good for peopel with background in programming
but the normal metall worker with non pc background will be upset on all the lines

Please Log in to join the conversation.

More
6 years 11 months ago #150581 by andypugh

Please Log in to join the conversation.

More
4 years 11 months ago #225499 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
I have always been fascinated by graphs and maps

Here's another tool for Hal visualization
Its a graph editor,  it is very preliminary



Its called Nodz and is at


github.com/LeGoffLoic/Nodz/tree/master

I modified it to:
pan zoom scroll and aded net names to the beziers
I changed some transparencies to allow the nets to be visible thru the comps
( rather than code the beziers to avoid comps )
I hard coded a few comps into the demo
I enabled save and load

There is a lot to be done to make this as useful as RockHopper and HalPyGraph
but it looks promising

I am not versed in Python, so the aliasing and choosing the
correct flavours of QtGui QtCore abd QtWidgets was hard-won.

The next challenge for me is to make unique names for each 'plug' (net names)
( another dict to learn, a plug is a source pin sorta )

So, many simple hacks have been done but the
parse hal, output editable graph, save graph and new hal
is a long way off.

I invite any wanting to, to get my source. ( its just 4 text files so far)

thanks
Tomp 06nov2021 20:16 Thailand

Please Log in to join the conversation.

More
4 years 11 months ago #225500 by tommylight
Sweet! :)
Thank you.

Please Log in to join the conversation.

More
4 years 11 months ago #225532 by cmorley
interesting - it could be embedded into one on the qtvcp screens.
I would suggest setting it up similar to halshow where you can pick a component for a list then it will visualize the connections related to that component.

Showing the whole configuration in one visualisation seems like it would be awkward.

Please Log in to join the conversation.

More
4 years 11 months ago #225547 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
cmorley wrote:
interesting - it could be embedded into one on the qtvcp screens.
   I have not thought about embedding it, possible though.
   It's meant to help explain  text based netlists

I would suggest setting it up similar to halshow where you can pick a component for a list then it will visualize the connections related to that component.
  Thats possible, a palette could show comps,
  but again the intent is to show hal relationships rather than indvidual comp pin/params
  But users can do as they wish ( i did similar in geda long ago )

Showing the whole configuration in one visualisation seems like it would be awkward.
  Agreed, a basic problem in visualization is seeing the part you are interested in  and how that relatess to the whole.
   I think thats where the user can re-organize/subdivide logical groups  that fit on a 'page' ( old Forth concept )
   yet still scroll to the sorurces or destinations of that logical group. And to zoom out to see how the grouping
   relates to the whole.  I think it is an 'explainer'.

  There's a great video by Lyft Architects about how complex diagrams can be viewd /edited
  Its on Vimeo, but you dont really have to join to see it
     vimeo.com/72447811
  thats the bleeding edge bladerunner extreme ;-) tomp
 

Please Log in to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum