Simulator

More
28 Feb 2018 09:42 #106689 by tecno
Simulator was created by tecno
Is it possible to take my working lathe INI + HAL and make this work in Simulator?

Would like to test out GUI's in my laptop

Cheers
Bengt

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

More
28 Feb 2018 11:56 #106692 by tecno
Replied by tecno on topic Simulator
Axis in lathe mode with Lathe macros is what I want to play around with for starters.

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

More
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.

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

More
28 Feb 2018 18:30 - 28 Feb 2018 18:57 #106734 by tecno
Replied by tecno on topic Simulator
Did setup a new profile with simulated hardware but gett error message like this.



rsvp was missing now installed but *play* button is not there, what to do?

Attachments:
Last edit: 28 Feb 2018 18:57 by tecno.

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

More
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.

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

More
28 Feb 2018 19:21 #106743 by tecno
Replied by tecno on topic Simulator
I made a new setup via stepconfig so it is only this INI

File Attachment:

File Name: cnc3000_sim.ini
File Size:2 KB
Attachments:

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

More
28 Feb 2018 20:47 - 28 Feb 2018 20:48 #106755 by Grotius
Replied by Grotius on topic Simulator
@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.
Last edit: 28 Feb 2018 20:48 by Grotius.

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

More
28 Feb 2018 21:13 #106758 by tecno
Replied by tecno on topic Simulator
I was hoping for a straight forward install of Lathe Macros just following instructions of what to copy where.
Do not know anything glade etc...

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

More
28 Feb 2018 21:25 - 28 Feb 2018 21:35 #106760 by Grotius
Replied by Grotius on topic Simulator
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 B) :
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui

Why a double "gladevcp gladevcp"? :woohoo:

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.

More
02 Mar 2018 08:52 #106835 by tecno
Replied by tecno on topic Simulator
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.

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

Time to create page: 0.125 seconds
Powered by Kunena Forum