- Posts: 170
- Thank you received: 54
Graphing a HAL configuration
4 years 10 months ago #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 :
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
I have all the prerequisites for Rockhopper, but I get stuck when i try to run :
Code:
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
Please Log in or Create an account to join the conversation.
4 years 10 months ago #229841
by andypugh
Replied by andypugh on topic Graphing a HAL configuration
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.
4 years 10 months ago #229850
by cmorley
Replied by cmorley on topic Graphing a HAL configuration
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
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.
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
tomp
Please Log in or Create an account to join the conversation.
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
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.
4 years 9 months ago #230663
by tjtr33
Replied by tjtr33 on topic Graphing a HAL configuration
I got parsing output of
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!
Code:
'halcmd show sig'
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 or Create an account to join the conversation.
Time to create page: 0.319 seconds