(Solved) HAL pin/signal list?

More
03 Oct 2021 19:06 #222128 by spumco
HAL pin/signal list? was created by spumco
Now that I'm sort-of getting the HAL thing, the next step is to use HAL to connect all the bits-n-pieces.

Is there a way to print out or export a complete list of pins and signals available in HAL?  I find scrolling through the HAL Show utility very cumbersome and would prefer a text file or (better) a spreadsheet format.

I realize this wouldn't work until LCNC is started and all the functions/pins/signals are created, but am I missing a tool somewhere that would help me visualize and organize everything?

I did see the HAL Gui thread.  Unfortunately, though I managed to instal node.js and the HAL server was working, it was a blank HAL file and I couldn't figure out how to have it display a particular HAL file.

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

More
03 Oct 2021 20:10 #222130 by rodw
Replied by rodw on topic HAL pin/signal list?
If you go to the  main documents page
linuxcnc.org/docs/2.8/html/
And click on Expand all Man pages, every pin is documented.

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

More
03 Oct 2021 20:55 #222136 by cmorley
Replied by cmorley on topic HAL pin/signal list?
in a terminal:

halcmd show pin

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

More
03 Oct 2021 21:07 #222139 by tommylight
The following user(s) said Thank You: spumco

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

More
03 Oct 2021 21:16 #222141 by PCW
Replied by PCW on topic HAL pin/signal list?
You can get everything (pins, parameters, signals, functions, threads) with

halcmd show all > all.txt
The following user(s) said Thank You: spumco, Muecke

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

More
03 Oct 2021 21:41 #222146 by spumco
Thank you all.  I didn't realize that PCW's simple command created a separate text file until I read Tommy's link.

For posterity:  if you rename the all.txt (or pins.txt) to all.hal, you can open it in Visual Studio Code.  Assuming you've added the LinuxCNC plugin/extension, VS Code will will highlight & color-code various parts to make it more readable.
The following user(s) said Thank You: Muecke

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

More
03 Oct 2021 22:00 #222151 by tommylight
Geany can do highlighting also for a lot of stuff:
sudo apt-get install geany

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

More
03 Oct 2021 22:06 #222152 by spumco
Thanks for the tip.  I'm used to VSC as I've got the G-code plugin and use it to edit programs, as well as edit post processors.

I'll take a look at Geany - it's already installed with MX.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.239 seconds
Powered by Kunena Forum