- Posts: 16
- Thank you received: 0
LinuxCNC Features - a kind of NGCGUI
- turbospeedskater
- Offline
- New Member
-
Less
More
11 years 8 months ago #55718
by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick,
the Problem I have with bug #2 from my 1st post is, that the 2nd circle can
not be moved back into array #2....
To give you a bit support, I have attached a file "AAA-4.xml" (sorry for the strange name).
It contains two arrays, each having two circles inside. Exactly what I want.
I have made it by editing the xml output of your software with gedit.....
The strange thing is: if you open the file, everything looks fine as expected.
If you save it under another name, and open it again, the circles have all
moved to group #1....
So the problem should be somewhere in the XML handling??
I hope this helps....
best regards,
Martin.
the Problem I have with bug #2 from my 1st post is, that the 2nd circle can
not be moved back into array #2....
To give you a bit support, I have attached a file "AAA-4.xml" (sorry for the strange name).
It contains two arrays, each having two circles inside. Exactly what I want.
I have made it by editing the xml output of your software with gedit.....
The strange thing is: if you open the file, everything looks fine as expected.
If you save it under another name, and open it again, the circles have all
moved to group #1....
So the problem should be somewhere in the XML handling??
I hope this helps....
best regards,
Martin.
Please Log in or Create an account to join the conversation.
- FernV
- Offline
- Platinum Member
-
Less
More
- Posts: 457
- Thank you received: 124
11 years 8 months ago - 11 years 8 months ago #55724
by FernV
Replied by FernV on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick, Martin
I know 2 development tools that works very good
Anjuta is really good but no real debugger except "print". Very easy to use.
The very best I found is Eclipse with pydev plugin. Great IDE but takes sometime to get use to and pydev has a REAL debugger.
I made a lot of changes to the app: better exception handling, shortcuts that work and I use a menu instead of a (what is the name ? image box ?). The menu is defined in a 'XML' file. I also did code cleanup and corrected most typos. It can be loaded before LinuxCNC and will auto-refresh when loaded. I added validity check in script (NGC) files, tool compensation and it draws a reference line (disappears by toggling '/', do not forget to do it before milling). I added some icons, an ellipse, one 'feature' that will allow to temporarily swap units (usefull in North America) and anything that has corners can have them rounded, inverted round or chamfered. Since I was unable to make 'Draw' work, I removed it and am developping something similar that does not use python but all coding is in NGC file, it does not include arc yet but corners can be shaped including at the start/finish point.
I will post some screenshots when I have time (may take a few weeks)
If the copy issue can not be solved, I will simply remove the 'self_id' and use NGC files. That would solve the problem but I would rather see the ID changed just to make sure the order I want is right.
Regards
I know 2 development tools that works very good
Anjuta is really good but no real debugger except "print". Very easy to use.
The very best I found is Eclipse with pydev plugin. Great IDE but takes sometime to get use to and pydev has a REAL debugger.
I made a lot of changes to the app: better exception handling, shortcuts that work and I use a menu instead of a (what is the name ? image box ?). The menu is defined in a 'XML' file. I also did code cleanup and corrected most typos. It can be loaded before LinuxCNC and will auto-refresh when loaded. I added validity check in script (NGC) files, tool compensation and it draws a reference line (disappears by toggling '/', do not forget to do it before milling). I added some icons, an ellipse, one 'feature' that will allow to temporarily swap units (usefull in North America) and anything that has corners can have them rounded, inverted round or chamfered. Since I was unable to make 'Draw' work, I removed it and am developping something similar that does not use python but all coding is in NGC file, it does not include arc yet but corners can be shaped including at the start/finish point.
I will post some screenshots when I have time (may take a few weeks)
If the copy issue can not be solved, I will simply remove the 'self_id' and use NGC files. That would solve the problem but I would rather see the ID changed just to make sure the order I want is right.
Regards
Last edit: 11 years 8 months ago by FernV.
Please Log in or Create an account to join the conversation.
- turbospeedskater
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
11 years 8 months ago #55735
by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi FernV,
thanks for the hints regarding the IDE for python.
I will check out Anjuta. I have already installed NetBeans and Eclipse.
But in both I could not really make the debugger working.
Single stepping through the features.py source code to find out how
everything works together simply does not work in both....
It seems, the debugger looses its link to the IDE if tracing the code.
But I will keep on trying...
If I have some time this weekend, I will write some words about the things I have
changed/added/improved on the features software.
I worked mostly on the ini, xml and ngc files, because I am not a great python expert...
And I had some subroutines written for ngcgui that I have ported to the feature software.
I will keep you informed,
best regards,
Martin.
thanks for the hints regarding the IDE for python.
I will check out Anjuta. I have already installed NetBeans and Eclipse.
But in both I could not really make the debugger working.
Single stepping through the features.py source code to find out how
everything works together simply does not work in both....
It seems, the debugger looses its link to the IDE if tracing the code.
But I will keep on trying...
If I have some time this weekend, I will write some words about the things I have
changed/added/improved on the features software.
I worked mostly on the ini, xml and ngc files, because I am not a great python expert...
And I had some subroutines written for ngcgui that I have ported to the feature software.
I will keep you informed,
best regards,
Martin.
Please Log in or Create an account to join the conversation.
- FernV
- Offline
- Platinum Member
-
Less
More
- Posts: 457
- Thank you received: 124
11 years 8 months ago #55744
by FernV
Replied by FernV on topic LinuxCNC Features - a kind of NGCGUI
Hi Martin,
You will find info on how to install pydev here
pydev.org/manual_101_root.html
find "Installing with the update site"
and follow instructions
or for a complete set-up
www.liclipse.com/
You can not debug python with only the debugger from Eclipse
Regards
Fern
You will find info on how to install pydev here
pydev.org/manual_101_root.html
find "Installing with the update site"
and follow instructions
or for a complete set-up
www.liclipse.com/
You can not debug python with only the debugger from Eclipse
Regards
Fern
Please Log in or Create an account to join the conversation.
- turbospeedskater
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
11 years 8 months ago #55747
by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi Fern,
I had installed dydev according to the instructions from the site you mention.
But somehow during my 1st tests, the debugger crashed from time to time....
But today (after installing, but not using Anjuta, and making my weekly software update),
everything works as expected. No idea why..... But now I can trace through the code
and inspect the variables.
Hopefully I will find the time for understanding the internal functions and
finding the problem with more than one groups....
Thanks, and best regards,
Martin
I had installed dydev according to the instructions from the site you mention.
But somehow during my 1st tests, the debugger crashed from time to time....
But today (after installing, but not using Anjuta, and making my weekly software update),
everything works as expected. No idea why..... But now I can trace through the code
and inspect the variables.
Hopefully I will find the time for understanding the internal functions and
finding the problem with more than one groups....
Thanks, and best regards,
Martin
Please Log in or Create an account to join the conversation.
- turbospeedskater
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
11 years 8 months ago #55912
by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi Fern,
in the meantime I have some success with eclipse and PyDev.
From time to time the debugger still crashes, but it is usable.
I traced the code down to some function dealing with the conversion
of data ( treestore / xml / file etc ). The problem I have now is:
The debugger does not know about the internal definitions of these data
objects, because they are defined somewher external in the gtk interfacing.
So I can not view the contents of the data objects. I can see the pointer
address only.
Do you know what to do to give the python debugger inside eclipse the knowledge
about these data objects, so that their contents can be seen?
I tried to find these infos with google and inside the eclipse and pydev handbook,
but up to now without success.
So i am stuck now....
any hints are welcome,
thanks in advance and best regards,
Martin.
in the meantime I have some success with eclipse and PyDev.
From time to time the debugger still crashes, but it is usable.
I traced the code down to some function dealing with the conversion
of data ( treestore / xml / file etc ). The problem I have now is:
The debugger does not know about the internal definitions of these data
objects, because they are defined somewher external in the gtk interfacing.
So I can not view the contents of the data objects. I can see the pointer
address only.
Do you know what to do to give the python debugger inside eclipse the knowledge
about these data objects, so that their contents can be seen?
I tried to find these infos with google and inside the eclipse and pydev handbook,
but up to now without success.
any hints are welcome,
thanks in advance and best regards,
Martin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.215 seconds