Graphing a HAL configuration

More
4 years 10 months ago #229850 by cmorley
If working in master, the python hal library supports some possibly useful functions.

get_info_pins()
linuxcnc.org/docs/devel/html/hal/halmodule.html#_get_info_pins

Please Log in to join the conversation.

More
4 years 10 months ago #229855 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
Thanks for the tip. I know I can use the library because I recognoze the code is like what I wrote ( listOdicts in my code vs listofdicts 555)

tomp

Please Log in to join the conversation.

More
4 years 10 months ago #229858 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
Thanks Andy
I contacted PJensen at ancient tubeclock address.
I'll see if he gets the message
("dingly ping": DiscWorld)
tomp

Please Log in to join the conversation.

More
4 years 9 months ago #230663 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
I got parsing output of
Code:
'halcmd show sig'
to create new graph automatically.
TODO allow multiple hal, bash. python, M1xx files to be aded to project dictionary.
Those can be data sources or sinks and normall y Hal doesnt know about them.
( Like a bash scripot that sets a signal or pin )
TODO: Spread out initial placement to make rats nest easier to work with.
(usinga grid suited to number of nodes ( ie: 3x3 or 5x5 etc)
TODO FilePickers
TODO a node editor to change the side where net enters
and allow changes to pin order in node (helps untangle)
TODO write to hal
Happy New Yeay
Chok Di Pi Mai!

Please Log in to join the conversation.

More
4 years 9 months ago #231307 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
now on github
github.com/tjtr33/Nodz
news: 22jan2022 23:00   now has automatic converter
  if you capture the output of 'halcmd show sig > yourfname.signals'
  then you can choose that file
  and save the converted output ( yourfname.json)
  You can then load yourfname.json and see it as an editable moveable zoomable graph
  Please upload example showsig files so I can test ( i dont have your hardware, so cannot create )

Now runs with python3 ( 3.7) 29jan2022
Try with the 3 supplied files SaveMe01... SaveMe02... Save<e03...
use  
Code:
python3 nodz_demo.py
   to see the progression from
Code:
halcmd show sig > mysystem.signals
Code:
[code]to the json file for Nodz to a ratsnest to a logical grouping to an untangled , clean digraph TomP  [attachment=42847]Nodz-lcnc.png[/attachment]
[/code]

Please Log in to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum