How to disable preview in Gmocappy
- tarasko
-
Topic Author
- Offline
- Senior Member
-
- Posts: 59
- Thank you received: 3
Is there a way to completely disable rendering of tool path, and don't burn CPU resources?
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
- Posts: 687
- Thank you received: 207
EMBED_TAB_NAME = preview
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = hide
For reference:
linuxcnc.org/docs/devel/html/gui/gmoccap...tabs-and-side-panels
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
(AXIS,stop)
Please Log in or Create an account to join the conversation.
- snakeoil
-
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
Meanwhile AXIS,stop seems to speed things up, allows big (15MB) gcode files, but I get this error:
Found an error!
The following information may be useful in troubleshooting:
Traceback (most recent call last):
File"/usr/lib/python3/dist-packages/gladevcp/hal_gremlin.py", line 144,
in fileloaded
self._load(f)
File"/usr/lib/python3/dist-packages/rs274/glcanon.py", line 347, in inner
return f(self, *args, **kw)
File"/usr/lib/python3/dist-packages/gladevcp/hal_gremlin.py",.line282,
in _load
return self.load(filename)
File "/usr/lib/python3/dist-packages/gremlin.py", line 354, in load
result, seq = self.load_preview(filename, canon, unitcode, initcode)
File"/usr/lib/python3/dist-packages/rs274/g|canon.py", line 1865, in
load_preview
result, seq = qcode parse(f, canon, *args)
RuntimeError: parse_file interp_error
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
But (AXIS,hide) worked in Gmoccapy.
(AXIS,show) is available too, in this way you can hide/show different parts.
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
- Posts: 687
- Thank you received: 207
Maybe in www.linuxcnc.org/docs/html/gcode/overview.html#gcode:messages ?
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
- Posts: 687
- Thank you received: 207
groups.google.com/g/machinekit/c/xN_nHGH-Czo?pli=1
github.com/machinekit/machinekit/commit/...88e07eb6651bf10266dc
The docs there say:
- 'DISABLE_PREVIEW = YES'Loading big files can seriously slow down or even crash Axis if the preview is enabled,
because it consumes huge amounts of memory.
This option turns the preview off. The live plot will still be drawn.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
- Posts: 687
- Thank you received: 207
To which of my two posts is this related?That is a good idea.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7884
- Thank you received: 2131
QtDragon already has this:
linuxcnc.org/docs/devel/html/gui/qtdragon.html#_preview_control
I have no strong opinion of your other suggestion, but if done it should be done for all GUIs so affects code in three files - but the code changes would be very similar.
Please Log in or Create an account to join the conversation.