Graphing a HAL configuration

More
07 Nov 2021 08:10 #225551 by cmorley
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 )

I might not have been clear with my thought.
I meant that it would show only the pins, connections and components related to the selected component.
Of course that could still be a lot of information..

Please Log in or Create an account to join the conversation.

More
14 Nov 2021 11:23 #226450 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
hmm, like some kind of markup in the .hal?
could be, but i am a long way from that.
Thx for the idea about limiting the scene/graph
tomp

Please Log in or Create an account to join the conversation.

More
14 Nov 2021 22:10 #226512 by mic
Replied by mic on topic Graphing a HAL configuration
Hi,
I think visualizing HAL-connections would be a very nice feature so I´ve also done some experiments a time ago to create a (webbased) viewer:
forum.linuxcnc.org/24-hal-components/429...-for-hal-development
Sourcecode at Github: github.com/dev-git-usr/HAL-Editor
Maybe it´s worth having a look. During the last monts I had not much time to push the project further but i´m still interested in this feature and willing to contribute if desired.

Michael

Please Log in or Create an account to join the conversation.

More
16 Nov 2021 15:14 - 16 Nov 2021 17:05 #226653 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
Thank you MicI did not know of this tool
I will installl and try
Thanks TomP

EDIT:no joy , could not start server, webpack complains 'overlay' is not a valid option

Editor-master$ sudo npm start
[sudo] password for tomp:
> linuxcnc_halbuilder@0.0.1 start
> ./node_modules/.bin/webpack serve --open[webpack-cli]

Invalid options object.
Dev Server has been initialized using an options object that does not match the API schema. 
- options has an unknown property 'overlay'.
These properties are valid:   object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?,
historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, static?,
watchFiles?, webSocketServer? }

the log file is attached
(lots of unresolved deps)
Linux dbn9sda1 4.9.0-16-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.272-2 (2021-07-19) x86_64 GNU/Linux

thx
tomp
Attachments:
Last edit: 16 Nov 2021 17:05 by tjtr33. Reason: added log file

Please Log in or Create an account to join the conversation.

More
16 Nov 2021 22:33 #226681 by mic
Replied by mic on topic Graphing a HAL configuration
Sorry for the inconvenience,
after a quick test - i think it´s not working properly with npm version 8.x.
I did only test on debian wheezy and buster with older npm/node versions.
Is it possible to install npm v 7.x and test again?

Thanks
Mic

Please Log in or Create an account to join the conversation.

More
17 Nov 2021 05:24 #226699 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
Hello MIc
I installed npm 7.24.2
and it failed same way ( on npm start, invalid property )
The npm/python smart installers are way too complex for me to debug
It would be easier to set up a wheezy partiion than chase the many deps.
I am still working thue NodeEditor using PyCharm and that is being quite a headache too.
thx
tomp
Attachments:

Please Log in or Create an account to join the conversation.

More
17 Nov 2021 22:08 #226796 by andypugh
Whilst I enjoy re-inventing the wheel as much as the next man, have you looked at Rockhopper?

Please Log in or Create an account to join the conversation.

More
27 Nov 2021 12:00 #227731 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
I worked some more on the hal diagrammer. It is an editor, meaning you can chaneg the look of the diagram . Someday I may be able to make it load and save Hal files, but for now ot it loads and saves a json file. I can reposition items, take screen shots and explain the hal files, I have lots to do. I used my own EDM system as the test hal file.  I had tried RockHopper long ago whenit first came out. I IRC,  it was not able to move and edit and save and reload.  But if some kind user would tell me that Rockhopper was an editor ( add items connect items disconnect save load...) Then I would install it and look.  I have spent yonks of time in these efforts and a simple advice could save me  a lot of time. Thanks TomP
( sorry the tgz file is right at the 1.5meg limit, I dunno if it will be available )
BTW PyCharm was a bust, I only use python ( 2.7/3/3.5 all work ) and PyQt5 (no PySide)
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Dec 2021 14:39 #229810 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
Hi Andy, I took your tip about looking into Rockhopper, so I could parse .hal.
I have all the prerequisites for Rockhopper, but I get stuck when i try to run :
tomp@dbn9sda1:~/Rockhopper$ python ./LinuxCNCWebSktSvr.py /home/tomp/linuxcnc-dev/configs/by_interface/parport/haledm2021-21oct2021-removeARISCaddPport/XepyvcpPP.ini __init__() got an unexpected keyword argument 'io_loop'

I found that the .hal file did not include all the data needed to create the graph ( the datatype and dir of each pin)
I began to use halrun and halreport  to gather the data and decided to look into how Rockhopper did this.
but got stuck...
any idea's ?

(meanwhile i poke around the source code to see what the error means.)
(also,  I got popups and hover info and hyperlinks and subsheets working)

thx TomP
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Dec 2021 00:24 #229841 by andypugh
Sorry, can't really help. Rockhopper was something I was introduced to at Wichita (you were there too, I think) and I have never really looked at it in detail, just have been aware that it existed. It might be a long way out of date by now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum