Embed NCAM in Axis under Debian Buster
- Barry
- Offline
- Senior Member
Less
More
- Posts: 54
- Thank you received: 4
18 Jan 2021 21:10 - 19 Jan 2021 03:32 #195831
by Barry
Embed NCAM in Axis under Debian Buster was created by Barry
I'm running Debian Buster. Axis works and Ncam works standalone, but I can't get NCam to embed in Axis. I am getting the error message shown in the attachment. Please help.
Here is how I tried to embed Ncam.
1. In the .ini file
A) [Display] section
NCAM_DIR = ncam
PROGRAM_PREFIX = /home/barry/linuxcnc/nc_files
GLADEVCP = -U --catalog=lathe-mm ncam.ui
NCAM_PATH = /usr/share/linuxcnc/aux_gladevcp/NativeCAM
[RS274NGC] Section
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = nativecam/my-stuff:nativecam/lib/lathe:nativecam/lib/utilities
2. Setup paths Under .profile and under .bashrc
export PATH="/usr/share/linuxcnc/aux_gladevcp/NativeCAM:$PATH"
export PATH="$HOME/linuxcnc/configs:$PATH"
export PATH="$HOME/linuxcnc/configs/BSH_CNC_Lathe:$PATH"
export PATH="$HOME/nativecam/catalogs/lathe:$PATH"
3. Setup Links under /usr/lib/python2.7/dist-packages/gladevcp/
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.glade
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.py
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.ui
4. Modified hal_pythonplugin.py by inserting
import ncam
5. Modified hal_python.xml
A. Under <glade-widget-classes> added:
<glade-widget-class name="Ncam" generic-name="ncam" title="ncam">
<properties>
<property id="size" query="False" default="1" visible="False"/>
<property id="spacing" query="False" default="0" visible="False"/>
<property id="homogeneous" query="False" default="0" visible="False"/>
</properties>
</glade-widget-class>
B. Under <glade-widget-group name="python" title="HAL Python"> added:
<glade-widget-class-ref name="Ncam"/>
I'm stuck. Please help. Thank you.
Barry
Here is how I tried to embed Ncam.
1. In the .ini file
A) [Display] section
NCAM_DIR = ncam
PROGRAM_PREFIX = /home/barry/linuxcnc/nc_files
GLADEVCP = -U --catalog=lathe-mm ncam.ui
NCAM_PATH = /usr/share/linuxcnc/aux_gladevcp/NativeCAM
[RS274NGC] Section
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = nativecam/my-stuff:nativecam/lib/lathe:nativecam/lib/utilities
2. Setup paths Under .profile and under .bashrc
export PATH="/usr/share/linuxcnc/aux_gladevcp/NativeCAM:$PATH"
export PATH="$HOME/linuxcnc/configs:$PATH"
export PATH="$HOME/linuxcnc/configs/BSH_CNC_Lathe:$PATH"
export PATH="$HOME/nativecam/catalogs/lathe:$PATH"
3. Setup Links under /usr/lib/python2.7/dist-packages/gladevcp/
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.glade
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.py
/usr/share/linuxcnc/aux_galdevcp/NativeCAM/ncam.ui
4. Modified hal_pythonplugin.py by inserting
import ncam
5. Modified hal_python.xml
A. Under <glade-widget-classes> added:
<glade-widget-class name="Ncam" generic-name="ncam" title="ncam">
<properties>
<property id="size" query="False" default="1" visible="False"/>
<property id="spacing" query="False" default="0" visible="False"/>
<property id="homogeneous" query="False" default="0" visible="False"/>
</properties>
</glade-widget-class>
B. Under <glade-widget-group name="python" title="HAL Python"> added:
<glade-widget-class-ref name="Ncam"/>
I'm stuck. Please help. Thank you.
Barry
Last edit: 19 Jan 2021 03:32 by Barry. Reason: Added more detail
Please Log in or Create an account to join the conversation.
- Barry
- Offline
- Senior Member
Less
More
- Posts: 54
- Thank you received: 4
20 Jan 2021 15:16 #195997
by Barry
Replied by Barry on topic Embed NCAM in Axis under Debian Buster
Success!!!
I started over completely by reloading the Debian-Buster ISO. Then I strictly followed the instructions under
README.md located at github.com/FernV/NativeCAM
the only confusion was the formatting of the command line in the README.md file
ncam (-i | --ini=)inifilename (-c | --catalog=)(valid catalog for this configuration)
After several trials I figured it out. An example of what worked for me is shown below:
ncam -i BSH_CNC_Lathe.ini -c 'lathe'
Thank you,
I started over completely by reloading the Debian-Buster ISO. Then I strictly followed the instructions under
README.md located at github.com/FernV/NativeCAM
the only confusion was the formatting of the command line in the README.md file
ncam (-i | --ini=)inifilename (-c | --catalog=)(valid catalog for this configuration)
After several trials I figured it out. An example of what worked for me is shown below:
ncam -i BSH_CNC_Lathe.ini -c 'lathe'
Thank you,
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds