- Posts: 83
- Thank you received: 11
halshow with PathPilot 2
7 years 11 months ago #121686
by rafferty
Replied by rafferty on topic halshow with PathPilot 2
Wow, that is a lot less work!
It was three months ago when I was looking at this, my ageing brain has discarded the details of the changes.
I had two aims, 1) have a working halshow from Pathpilot and 2) being able to run the various hal tools from a terminal without starting PathPilot.
Have you tested my 2nd aim, the hal tools in a terminal without PathPilot running?
It was three months ago when I was looking at this, my ageing brain has discarded the details of the changes.
I had two aims, 1) have a working halshow from Pathpilot and 2) being able to run the various hal tools from a terminal without starting PathPilot.
Have you tested my 2nd aim, the hal tools in a terminal without PathPilot running?
Please Log in or Create an account to join the conversation.
7 years 10 months ago #121725
by smgvbest
Replied by smgvbest on topic halshow with PathPilot 2
Change these
to
that should do the same thing
I haven't checked it but if that was all you had to do that change to PATH should be all that's needed
Code:
copy the haltcl file to /home/operator/tmc/bin/ and change the first two lines to
#!/usr/bin/tclsh8.6
load /home/operator/repos/tormach_linuxcnc/linuxcnc/tcl/hal.so
Code:
Add the folloing three lines to the end of .bashrc to run hal commands from a shell (sorry, one existing file is modified)
export LD_LIBRARY_PATH="/home/operator/tmc/lib"
export PATH="/home/operator/tmc/bin":$PATH
export LINUXCNC_RTLIB_DIR="/home/operator/tmc/rtlib"
to
Code:
copy the haltcl file to /home/operator/tmc/bin/ and change the first two lines to
#!/usr/bin/tclsh8.6
load /home/operator/tcl/hal.so
Code:
Add the following three lines to the end of .bashrc to run hal commands from a shell (sorry, one existing file is modified)
export LD_LIBRARY_PATH="~/tmc/lib"
export PATH=~/tmc/bin:~/tmc/scripts:$PATH
export LINUXCNC_RTLIB_DIR="~/tmc/rtlib"
that should do the same thing
I haven't checked it but if that was all you had to do that change to PATH should be all that's needed
Please Log in or Create an account to join the conversation.
- DanieGouws
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 7 months ago #161238
by DanieGouws
Replied by DanieGouws on topic halshow with PathPilot 2
Hi,
I'm also trying to get Halshow running for PathPilot on a non-Tormach machine. Halscope and Halmeter are working.
I have copied halshow.tcl from another Linuxcnc installation running on a 64 bit machine, as far as I can see it is the same version as the one available at git repo.
However, I cannot seem to find the lines of code:
#!/usr/bin/tclsh8.6
source /home/operator/repos/pathpilot3/linuxcnc/tcl/bin/halshow.tcl
in the code.
In my halshow.tcl the 1st few lines of code looks like:
#!/bin/sh
# the next line restarts using emcsh \
exec $LINUXCNC_EMCSH "$0" "$@"
###############################################################
# Description: halshow.tcl
# This file, shows a running hal configuration
# and has menu for modifying and tuning
#
# Author: Raymond E Henry
# License: GPL Version 2
#
# Copyright (c) 2006-2009 All rights reserved.
###############################################################
# FIXME -- empty mod entry widgets after execute
# FIXME -- please hal param naming conventions aren't
###############################################################
# Load the linuxcnc.tcl file, which defines variables for various useful paths
source [file join [file dirname [info script]] .. linuxcnc.tcl]
Hope you can help, thank you very much
Danie
I'm also trying to get Halshow running for PathPilot on a non-Tormach machine. Halscope and Halmeter are working.
I have copied halshow.tcl from another Linuxcnc installation running on a 64 bit machine, as far as I can see it is the same version as the one available at git repo.
However, I cannot seem to find the lines of code:
#!/usr/bin/tclsh8.6
source /home/operator/repos/pathpilot3/linuxcnc/tcl/bin/halshow.tcl
in the code.
In my halshow.tcl the 1st few lines of code looks like:
#!/bin/sh
# the next line restarts using emcsh \
exec $LINUXCNC_EMCSH "$0" "$@"
###############################################################
# Description: halshow.tcl
# This file, shows a running hal configuration
# and has menu for modifying and tuning
#
# Author: Raymond E Henry
# License: GPL Version 2
#
# Copyright (c) 2006-2009 All rights reserved.
###############################################################
# FIXME -- empty mod entry widgets after execute
# FIXME -- please hal param naming conventions aren't
###############################################################
# Load the linuxcnc.tcl file, which defines variables for various useful paths
source [file join [file dirname [info script]] .. linuxcnc.tcl]
Hope you can help, thank you very much
Danie
Please Log in or Create an account to join the conversation.
6 years 7 months ago #161307
by rafferty
Replied by rafferty on topic halshow with PathPilot 2
I think you are editing at the wrong file.
The file to edit is "haltcl" not "halshow.tcl".
Ken
The file to edit is "haltcl" not "halshow.tcl".
Ken
Please Log in or Create an account to join the conversation.
- DanieGouws
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 7 months ago #161369
by DanieGouws
Replied by DanieGouws on topic halshow with PathPilot 2
Hi Ken,
I changed the text file halshow to:
#!/usr/bin/tclsh8.6
source ~/tmc/tcl/bin/halshow.tcl
Now it is working fine, thank you very much Danie
I changed the text file halshow to:
#!/usr/bin/tclsh8.6
source ~/tmc/tcl/bin/halshow.tcl
Now it is working fine, thank you very much Danie
Please Log in or Create an account to join the conversation.
5 years 10 months ago #192076
by gerritv
Replied by gerritv on topic halshow with PathPilot 2
A big thank you for documenting this, it will help greatly once I start enhancing my Pathpilot setup on a shop-built gantry mill/router I am finishing up.
Gerrit
Gerrit
Please Log in or Create an account to join the conversation.
Time to create page: 0.157 seconds