NativeCAM is Features renamed

More
9 years 11 months ago - 9 years 11 months ago #83185 by FernV
Replied by FernV on topic NativeCAM is Features renamed
I want you to do this :
  1. Open a terminal in NativeCAM directory
  2. type : ./ncam.py
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved

Now type or copy : ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini

NativeCAM info:
inifile = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Created 3 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Created 151 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Created 5 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
SUBROUTINE_PATH[0] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
SUBROUTINE_PATH[1] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/utilities

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved

Now type or copy : sudo python setup.py c
Add a c (clear) at the end
You should have a result similar to this if you already executed it :
fernand@debian:~/NativeCAM$ sudo python setup.py c
[sudo] password for fernand:
wait, processing...
removed link to ncam.py from /usr/lib/pymodules/python2.7/gladevcp

"from ncam import NCam" removed from /usr/share/pyshared/gladevcp/hal_pythonplugin.py

removed link to ncam.py from /usr/share/pyshared/gladevcp

glade-widget-class named NCam removed from /usr/share/glade3/catalogs/hal_python.xml

glade-widget-class-ref name NCam removed from /usr/share/glade3/catalogs/hal_python.xml

/usr/share/glade3/catalogs/hal_python.xml saved

Now type or copy : sudo python setup.py
WITHOUT a c at the end
You should have a result similar to this :
fernand@debian:~/NativeCAM$ sudo python setup.py
[sudo] password for fernand:
wait, processing...
created link to ncam.py in /usr/lib/pymodules/python2.7/gladevcp

"from ncam import NCam" added to /usr/share/pyshared/gladevcp/hal_pythonplugin.py

created link to ncam.py in /usr/share/pyshared/gladevcp

glade-widget-class named NCam added to /usr/share/glade3/catalogs/hal_python.xml

glade-widget-class-ref named NCam added to /usr/share/glade3/catalogs/hal_python.xml

/usr/share/glade3/catalogs/hal_python.xml saved

Now type or copy : linuxcnc configs/sim/axis/ncam_demo/mill.ini
You should have a result similar to this :
fernand@debian:~/NativeCAM$ linuxcnc configs/sim/axis/ncam_demo/mill.ini
LINUXCNC - 2.7.8
Machine configuration directory is '/home/fernand/NativeCAM/configs/sim/axis/ncam_demo'
Machine configuration file is 'mill.ini'
Starting LinuxCNC...
Found file(REL): ./core_sim.hal
Found file(REL): ./sim_spindle_encoder.hal
Found file(REL): ./axis_manualtoolchange.hal
Found file(REL): ./simulated_home.hal
task: main loop took 0.014381 seconds
task: main loop took 0.014113 seconds

NativeCAM info:
inifile = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam
program = /usr/lib/pymodules/python2.7/gladevcp/ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Updated 0 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
SUBROUTINE_PATH[0] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
SUBROUTINE_PATH[1] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/utilities

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved
task: main loop took 0.016372 seconds
task: main loop took 0.013368 seconds
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension
task: main loop took 0.013335 seconds

===================================
All this has been done on Debian Wheezy with a fresh cloning of NativeCAM

Replace all *.hal files with the one from your working config directory

If you do not have this kind of result, show me the result you have. I can NOT help you without it

Regards
Fern
Last edit: 9 years 11 months ago by FernV.

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

More
9 years 11 months ago #83205 by gmouer

FernV wrote: I want you to do this :

  1. Open a terminal in NativeCAM directory
  2. type : ./ncam.py
You should have a result similar to this :
fernand@debian:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/fernand/NativeCAM
NCAM_DIR = /home/fernand/NativeCAM
program = ./ncam.py
real path = /home/fernand/NativeCAM/ncam.py

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved

==================================
All this has been done on Debian Wheezy with a fresh cloning of NativeCAM

Replace all *.hal files with the one from your working config directory

If you do not have this kind of result, show me the result you have. I can NOT help you without it

Regards
Fern


Hi Fern,
I will do a individual post for each section of your instructions along with my results to avoid confusion. I started by clearing out my old NativeCAM install and starting with a fresh clone from github.

Results of first instruction:

bridgeport@Bridgeport:~$ cd NativeCAM
bridgeport@Bridgeport:~/NativeCAM$ ./ncam.py

NativeCAM info:
inifile = NA
SYS_DIR = /home/bridgeport/NativeCAM
NCAM_DIR = /home/bridgeport/NativeCAM
program = ./ncam.py
real path = /home/bridgeport/NativeCAM/ncam.py

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved



This appears to be the same as what you posted. I should also note that the NativeCAM standalone program launched and came up in a window.

Next instruction/results to follow.

George

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

More
9 years 11 months ago #83206 by gmouer

FernV wrote: I want you to do this :


    Now type or copy : ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini
    You should have a result similar to this :
    fernand@debian:~/NativeCAM$ ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini

    NativeCAM info:
    inifile = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
    SYS_DIR = /home/fernand/NativeCAM
    NCAM_DIR = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam
    program = ./ncam.py
    real path = /home/fernand/NativeCAM/ncam.py

    Created 3 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
    Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
    Created 69 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
    Created 151 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
    Created 5 files in /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

    [RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
    SUBROUTINE_PATH[0] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
    SUBROUTINE_PATH[1] (realpath) = /home/fernand/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/utilities

    Using standard menu.xml, no menu-custom.xml found

    Can not find file quick_access.lst
    Previous work not saved as current work
    No default template saved

    Regards
    Fern


Hi Fern,

Here is the next instruction you gave. It also opened a standalone NativeCAM window just like before.

bridgeport@Bridgeport:~$ cd NativeCAM
bridgeport@Bridgeport:~/NativeCAM$ ./ncam.py -iconfigs/sim/axis/ncam_demo/mill.ini
NativeCAM info:
inifile = /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/mill.ini
SYS_DIR = /home/bridgeport/NativeCAM
NCAM_DIR = /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam
program = ./ncam.py
real path = /home/bridgeport/NativeCAM/ncam.py

Created 3 files in /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/catalogs
Created 69 files in /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/cfg
Created 69 files in /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib
Created 151 files in /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/graphics
Created 5 files in /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/xml

[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities
SUBROUTINE_PATH[0] (realpath) = /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/mill
SUBROUTINE_PATH[1] (realpath) = /home/bridgeport/NativeCAM/configs/sim/axis/ncam_demo/ncam/lib/utilities

Using standard menu.xml, no menu-custom.xml found

Can not find file quick_access.lst
Previous work not saved as current work
No default template saved


On to your next instruction which I will post shortly.

George

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

More
9 years 11 months ago #83207 by gmouer

FernV wrote: I want you to do this :


    Now type or copy : sudo python setup.py c
    Add a c (clear) at the end
    You should have a result similar to this if you already executed it :
    fernand@debian:~/NativeCAM$ sudo python setup.py c
    [sudo] password for fernand:
    wait, processing...
    removed link to ncam.py from /usr/lib/pymodules/python2.7/gladevcp

    "from ncam import NCam" removed from /usr/share/pyshared/gladevcp/hal_pythonplugin.py

    removed link to ncam.py from /usr/share/pyshared/gladevcp

    glade-widget-class named NCam removed from /usr/share/glade3/catalogs/hal_python.xml

    glade-widget-class-ref name NCam removed from /usr/share/glade3/catalogs/hal_python.xml

    /usr/share/glade3/catalogs/hal_python.xml saved


    Regards
    Fern



This time I got different results.

bridgeport@Bridgeport:~$ cd NativeCAM
bridgeport@Bridgeport:~/NativeCAM$ sudo python setup.py c
[sudo] password for bridgeport:
wait, processing...
bridgeport@Bridgeport:~/NativeCAM$


I think I know why. I started with a fresh clone from github after uninstalling the previous. Since the new clone I have NOT run setup.py, I only did exactly what you listed. Because setup.py was not run, the files are not present to be removed. Am I correct?

I resisted the temptation to run setup.py until you confirm this for me. Things are going well so far and I don't want to mess things up.

George

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

More
9 years 11 months ago #83209 by FernV
Replied by FernV on topic NativeCAM is Features renamed
Hi George

So far it looks good (except I should have setup.py print a message when nothing needed to be cleared)

Continue now with the next step : sudo python setup.py

THE RESULT OF THIS IS CRUCIAL AND IT IS WHERE A PROBLEM MIGHT BE.
By the way, what is your Linux distribution and version ?

Fern

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

More
9 years 11 months ago #83210 by gmouer
Hi Fern,
I am running Debian Wheezy, installed off the current live CD. I then updated to master and brought everything up to date. The current version of Master on my machine is 2.8.0-pre1-2761-g2b678aa.

I shutdown the shop for the night and will continue with your instructions in the morning. Your help is much appreciated.

By the way, running the sim is only for the purposes of verifying the install, I never plan on actually using the sim. I have a working hal/ini file for the bridgeport mill and that is where I intend to implement NativeCAM. I am extremely excited about the usefulness of NativeCAM on the mill for everyday tasks.

I will post results of the next steps in the morning.

Thanks again,
George (USA, South Carolina)

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

Time to create page: 0.108 seconds
Powered by Kunena Forum