Simulator
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4978
- Thank you received: 1377
28 Feb 2018 13:44 #106698
by Todd Zuercher
Replied by Todd Zuercher on topic Simulator
Here is what I would try to do, first load one of the sim lathe example configs, the one that is closest to what you might like to do. Such as sim/axis/ngcgui/ngcgui_lathe.
Then copy your ini file to the config directory for that sim, and edit your ini file so that it calls the same hal file(s) as the ini for the sim. You will also need to add any additional display lines, such as the ones that call up VCPs, simply copy those lines from the sim ini to your new ini. You might still find you need to make further edits to your ini or the hal files but the above should get you close.
Then copy your ini file to the config directory for that sim, and edit your ini file so that it calls the same hal file(s) as the ini for the sim. You will also need to add any additional display lines, such as the ones that call up VCPs, simply copy those lines from the sim ini to your new ini. You might still find you need to make further edits to your ini or the hal files but the above should get you close.
Please Log in or Create an account to join the conversation.
28 Feb 2018 18:30 - 28 Feb 2018 18:57 #106734
by tecno
Last edit: 28 Feb 2018 18:57 by tecno.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4978
- Thank you received: 1377
28 Feb 2018 19:12 #106741
by Todd Zuercher
Replied by Todd Zuercher on topic Simulator
Ah, NativeCAM, I have not played with that. It may have more ini requirements than an ordinary config.
Could you post the ini file you are trying to use, and the one for the original sim config you are trying to graft onto.
Could you post the ini file you are trying to use, and the one for the original sim config you are trying to graft onto.
Please Log in or Create an account to join the conversation.
28 Feb 2018 19:21 #106743
by tecno
I made a new setup via stepconfig so it is only this INI
Please Log in or Create an account to join the conversation.
28 Feb 2018 20:47 - 28 Feb 2018 20:48 #106755
by Grotius
@Techno,
You error has to do with a picture of a button. Can you add a picture to the button in glade? Or maybe in glade delete the button image related traceback?
Do you have a .glade file of your actual screen loaded?
For the rest your error is located in the usr ... bin... glade file, when this is happening, you can not solve this there.
So it's a quite simple problem, but has to solve in the top of the program... somewhere in glade or somewhere in your current used files.
I think you don't have to search in the python files first. I preferr to solve it in the glade file's if possible.
You error has to do with a picture of a button. Can you add a picture to the button in glade? Or maybe in glade delete the button image related traceback?
Do you have a .glade file of your actual screen loaded?
For the rest your error is located in the usr ... bin... glade file, when this is happening, you can not solve this there.
So it's a quite simple problem, but has to solve in the top of the program... somewhere in glade or somewhere in your current used files.
I think you don't have to search in the python files first. I preferr to solve it in the glade file's if possible.
Last edit: 28 Feb 2018 20:48 by Grotius.
Please Log in or Create an account to join the conversation.
28 Feb 2018 21:25 - 28 Feb 2018 21:35 #106760
by Grotius
Hi Techno,
Okey thanks, the error report is for me too difficult too solve with macro instructionÅ› or command line instructionÅ›, sorry for that.
Maybe Todd can do something with teamviewer with you to solve the problem... Idea?
In your ini file i see a suspected item :
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
Why a double "gladevcp gladevcp"?
My logic tab line idea would be :
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
This is logic without looking ad the meaning of the code that is written... Double loading makeÅ› most of time no sense.
Okey thanks, the error report is for me too difficult too solve with macro instructionÅ› or command line instructionÅ›, sorry for that.
Maybe Todd can do something with teamviewer with you to solve the problem... Idea?
In your ini file i see a suspected item :
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
Why a double "gladevcp gladevcp"?
My logic tab line idea would be :
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
This is logic without looking ad the meaning of the code that is written... Double loading makeÅ› most of time no sense.
Last edit: 28 Feb 2018 21:35 by Grotius.
Please Log in or Create an account to join the conversation.
02 Mar 2018 08:52 #106835
by tecno
This comes from README file in LatheMacro-3.zip
This config demonstrates the Lathe macros described here:
www.linuxcnc.org/index.php/english/forum...s/26550-lathe-macros
To add the macros to your own config you need to add this line to the INI file [DISPLAY] section:
[DISPLAY]
EMBED_TAB_NAME=Cycles
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
Then put these files in the same directory as the INI file.
Bore.png
boring.ngc
chamfer.png
chamfer.ngc
facing.ngc
Facing.png
radius.ngc
radius.png
Threading.png
threading.ngc
turning.ngc
Turn.png
lathehandler.py
lathemacro.ui
If I edit and erase that gladevcp LCNC will not start! So there must be something else that is wrong here.
This config demonstrates the Lathe macros described here:
www.linuxcnc.org/index.php/english/forum...s/26550-lathe-macros
To add the macros to your own config you need to add this line to the INI file [DISPLAY] section:
[DISPLAY]
EMBED_TAB_NAME=Cycles
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
Then put these files in the same directory as the INI file.
Bore.png
boring.ngc
chamfer.png
chamfer.ngc
facing.ngc
Facing.png
radius.ngc
radius.png
Threading.png
threading.ngc
turning.ngc
Turn.png
lathehandler.py
lathemacro.ui
If I edit and erase that gladevcp LCNC will not start! So there must be something else that is wrong here.
Please Log in or Create an account to join the conversation.
Time to create page: 0.285 seconds