Custom Gui. GCode parser
11 Mar 2015 07:00 - 11 Mar 2015 07:02 #56652
by ww34ww34
Custom Gui. GCode parser was created by ww34ww34
Hi everyone.
I'm trying to write a custom gui.
Now i want to check gcode error before file loading. How i can check the syntax?
Thanks.
Salvatore
I'm trying to write a custom gui.
Now i want to check gcode error before file loading. How i can check the syntax?
Thanks.
Salvatore
Last edit: 11 Mar 2015 07:02 by ww34ww34.
Please Log in or Create an account to join the conversation.
11 Mar 2015 08:45 #56660
by cmorley
Replied by cmorley on topic Custom Gui. GCode parser
Linuxcnc checks the file as its loaded (at least in axis and gladeVCP\s gremlin).
I would guess you could use the same technique.
roughly I believe it invokes it;s own private gcode interpeter and runs the code through it keeping track of errors.
Look through the source code of Axis and Gremlin. (you will have to dig deep)
What language are you writing it in?
Also not sure if you know Gscreen was built for users to build custom GUis with (in python)
Chris M
I would guess you could use the same technique.
roughly I believe it invokes it;s own private gcode interpeter and runs the code through it keeping track of errors.
Look through the source code of Axis and Gremlin. (you will have to dig deep)
What language are you writing it in?
Also not sure if you know Gscreen was built for users to build custom GUis with (in python)
Chris M
Please Log in or Create an account to join the conversation.
12 Mar 2015 04:32 #56714
by newbynobi
Replied by newbynobi on topic Custom Gui. GCode parser
Gmoccapy does react to errors through python.
I introduced a signal in hal gremlin to be emmited in case of an error.
Take a look here: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...3af4b21877cf9fb15c9f
Norbert
I introduced a signal in hal gremlin to be emmited in case of an error.
Take a look here: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...3af4b21877cf9fb15c9f
Norbert
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds