Graphing a HAL configuration

More
24 Dec 2021 02:45 #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 or Create an account to join the conversation.

More
24 Dec 2021 03:38 #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 or Create an account to join the conversation.

More
24 Dec 2021 03:42 #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 or Create an account to join the conversation.

More
03 Jan 2022 16:22 #230663 by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
I got parsing output of
'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!
Attachments:

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

More
10 Jan 2022 14:24 - 28 Jan 2022 16:37 #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  
python3 nodz_demo.py
   to see the progression from
halcmd show sig > mysystem.signals
[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]
Attachments:
Last edit: 28 Jan 2022 16:37 by tjtr33. Reason: chg to Python3
The following user(s) said Thank You: tommylight

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

Time to create page: 0.076 seconds
Powered by Kunena Forum