How to load halshow from postgui_hal?

More
08 Jul 2014 21:54 #48543 by Mr. Technical
Hi Guys,

I'm doing some debugging, and I keep having to open and close LCNC. Every time I open it, I need to use the drop-down menu to see the Show HAL Configuration, or halshow. Is there a command that I can enter in my postgui_hal file to do that automatically?

Also, is there a way to load my saved watch lists from there as well?

Finally, is there a way to automatically make the windows 'always on top'?

Thanks,

Mr. Technical

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

More
08 Jul 2014 22:16 - 08 Jul 2014 22:17 #48544 by PCW
It might be a bit easier to just use a halcmd script to do this
that is, when linuxcnc is running, open a a terminal and run:

halcmd -f my_halcmd_script

the script might be something like:

setp something true
show somethingelse
...
Last edit: 08 Jul 2014 22:17 by PCW.

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

More
08 Jul 2014 22:33 #48545 by ArcEye
Hi

I take it you are still debugging your component

I wrote this some time ago for just this situation, it displays the values of whatever pins you have selected in a seperate userspace window.
When you shutdown linuxcnc it remains and starts refreshing again when linuxcnc is started again.

www.mgware.co.uk/LinuxCNC/halview.html

You will have to install redis and hiredis plus the Qt3 libs if not already there (details on the page) but might suit if you are doing it a lot.

regards

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

More
09 Jul 2014 05:54 #48551 by andypugh

Every time I open it, I need to use the drop-down menu to see the Show HAL Configuration, or halshow. Is there a command that I can enter in my postgui_hal file to do that automatically?


What I do in this situation (and it can be in any HAL file, not just postgui) is to
loadusr halmeter -s parport.0.pin-10-in
in my hal file near where the pins I want to watch are created.
You can optionally define the position on the screen:
www.linuxcnc.org/docs/devel/html/man/man1/halmeter.1.html

I don't think that you can load halshow in the same way (but would be happy to be proven wrong) but you can launch halscope from the hal file.

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

More
09 Jul 2014 23:15 #48587 by Mr. Technical
Thanks Guys,

Those suggestions will work nicely!

Mr. Technical

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

More
10 Jul 2014 07:47 #48599 by cmorley
try this, you must find the actual path on your computer though:
loadusr tclsh /home/chris/emc2-dev/tcl/bin/halshow.tcl

Chris M
The following user(s) said Thank You: MatroskinTom

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

Time to create page: 0.131 seconds
Powered by Kunena Forum