More Decimal Places in the Default Axis GUI
29 Mar 2014 00:03 #45345
by fbx109
More Decimal Places in the Default Axis GUI was created by fbx109
Hello,
I would like to see a 5th decimal place in the AXIS gui. Is this a changeable setting? I looked around the LinuxCNC documentation and searched the forum, but I did not find any information about it.
Thanks
I would like to see a 5th decimal place in the AXIS gui. Is this a changeable setting? I looked around the LinuxCNC documentation and searched the forum, but I did not find any information about it.
Thanks
Please Log in or Create an account to join the conversation.
29 Mar 2014 08:19 #45359
by andypugh
Not exactly, but because the relevant code runs in an interpreted rather than a compiled language it is relatively easy to change. Just be aware that you will need to change it again when you upgrade.
gksudo gedit (this opens gedit in super-user mode)
then open /usr/share/pyshared/rs274/glcanon.py
Edit line 1068 and change
format = "% 6s:% 9.3f"
to
format = "% 6s:% 9.6f"
for 6 digits of decimals/
Then save the file.
I can not guarantee that the line number is correct, this was a paste from an old email.
Replied by andypugh on topic More Decimal Places in the Default Axis GUI
I would like to see a 5th decimal place in the AXIS gui. Is this a changeable setting?
Not exactly, but because the relevant code runs in an interpreted rather than a compiled language it is relatively easy to change. Just be aware that you will need to change it again when you upgrade.
gksudo gedit (this opens gedit in super-user mode)
then open /usr/share/pyshared/rs274/glcanon.py
Edit line 1068 and change
format = "% 6s:% 9.3f"
to
format = "% 6s:% 9.6f"
for 6 digits of decimals/
Then save the file.
I can not guarantee that the line number is correct, this was a paste from an old email.
Please Log in or Create an account to join the conversation.
16 Dec 2015 22:45 #67055
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
Will this mod give you that precision if you call for it? I have added gear reducers to the ball screw to add precision by 100. I would like to be able to call for it in g code instead of having to remember of dividing what i call for by 100.
Thanks for all your great posts.
Thanks for all your great posts.
Please Log in or Create an account to join the conversation.
17 Dec 2015 11:00 #67076
by andypugh
If you have put in 100:1 reducers then you simply need to change the scaling numbers in the INI file by a factor of 100 too.
Replied by andypugh on topic More Decimal Places in the Default Axis GUI
Will this mod give you that precision if you call for it? I have added gear reducers to the ball screw to add precision by 100. I would like to be able to call for it in g code instead of having to remember of dividing what i call for by 100.
If you have put in 100:1 reducers then you simply need to change the scaling numbers in the INI file by a factor of 100 too.
Please Log in or Create an account to join the conversation.
06 Jan 2016 22:15 #67986
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
Im an idot when it comes to linux. Im loving i though if i only knew how to use command and knowwhat the hell im doin but i failed to edit the file
this is what i get
cyrut2@EMC:~$ gksudo gedit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
(gksudo:2576): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ open /usr/share/pyshared/rs274/glcanon.py
Couldnt get a file descriptor referring to the console
Could not get a file descriptor referring to the console
cyrut2@EMC:~$ ^C
cyrut2@EMC:~$
this is what i get
cyrut2@EMC:~$ gksudo gedit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
(gksudo:2576): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ open /usr/share/pyshared/rs274/glcanon.py
Couldnt get a file descriptor referring to the console
Could not get a file descriptor referring to the console
cyrut2@EMC:~$ ^C
cyrut2@EMC:~$
Please Log in or Create an account to join the conversation.
06 Jan 2016 22:23 #67987
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
What can i do it is giving me a denied error.
(gksudo:3782): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ gksudo edit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
cyrut2@EMC:~$ /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
(gksudo:3782): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ gksudo edit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
cyrut2@EMC:~$ /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Please Log in or Create an account to join the conversation.
06 Jan 2016 22:37 #67988
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
oKAY i got as fas as opening the file in the terminal but i cannot go to the section to edit the file. I tried it in the file manager but it says unable to open and write. Sorry for being such a noob but i cannot figure it out im reading linux for dummies and that is still over my head.
Please Log in or Create an account to join the conversation.
06 Jan 2016 23:18 #67990
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
got a little farther but still denied..... ok so it seems i do not have a root user and password as it defaulted to the cyrut2 user that i created.... im reading on changing root to normal user but like i said this is new to me.
cyrut2@EMC:~$ su i
No passwd entry for user 'i'
cyrut2@EMC:~$ su cyrut2
Password:
cyrut2@EMC:~$ sudo su
[sudo] password for cyrut2:
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit
root@EMC:/home/cyrut2# gksudo
root@EMC:/home/cyrut2# gedit /usr/share/pyshared/rs274/glcanon.py
bash: gedit: command not found
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
cyrut2@EMC:~$ su i
No passwd entry for user 'i'
cyrut2@EMC:~$ su cyrut2
Password:
cyrut2@EMC:~$ sudo su
[sudo] password for cyrut2:
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit
root@EMC:/home/cyrut2# gksudo
root@EMC:/home/cyrut2# gedit /usr/share/pyshared/rs274/glcanon.py
bash: gedit: command not found
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Please Log in or Create an account to join the conversation.
06 Jan 2016 23:26 - 06 Jan 2016 23:27 #67991
by cyrut2
Replied by cyrut2 on topic More Decimal Places in the Default Axis GUI
seems that its manually installed so it didnt update im trying everything i can think off and still stuck...Help
root@EMC:/home/cyrut2# sudo apt-get install gksu
Reading package lists... Done
Building dependency tree
Reading state information... Done
gksu is already the newest version.
gksu set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
root@EMC:/home/cyrut2# gksudo gedit /usr/shared/rs274/glcanon.py
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
root@EMC:/home/cyrut2# sudo apt-get install gksu
Reading package lists... Done
Building dependency tree
Reading state information... Done
gksu is already the newest version.
gksu set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
root@EMC:/home/cyrut2# gksudo gedit /usr/shared/rs274/glcanon.py
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Last edit: 06 Jan 2016 23:27 by cyrut2.
Please Log in or Create an account to join the conversation.
07 Jan 2016 00:17 #67992
by andypugh
Replied by andypugh on topic More Decimal Places in the Default Axis GUI
You can try a plain "sude gedit" and if that doesn't work "sudo nano".
Nano is a text mode editor. It will take some getting used to, but at least the commands to use are at the bottom.
Nano is a text mode editor. It will take some getting used to, but at least the commands to use are at the bottom.
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds