Add Tab to Axis View Pane
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 200
- Thank you received: 10
30 Aug 2024 22:32 #309059
by Project_Hopeless
Add Tab to Axis View Pane was created by Project_Hopeless
Attachments:
Please Log in or Create an account to join the conversation.
31 Aug 2024 03:29 #309070
by cmorley
Replied by cmorley on topic Add Tab to Axis View Pane
If you use Qtvcp to render the vismach panel, you can embed it with a command such as this:
[DISPLAY]
# Embed tabs
EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} vismach_mill_xyz
linuxcnc.org/docs/stable/html/gui/qtvcp-vismach.html
[DISPLAY]
# Embed tabs
EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} vismach_mill_xyz
linuxcnc.org/docs/stable/html/gui/qtvcp-vismach.html
The following user(s) said Thank You: Project_Hopeless
Please Log in or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 200
- Thank you received: 10
02 Sep 2024 18:26 #309221
by Project_Hopeless
I switched over to Qt Vismach for the display. The panel is created and works, it just doesn't embed. The sim runs, its just that I get the following errors at startup.
Replied by Project_Hopeless on topic Add Tab to Axis View Pane
Is the variable vismach_mill_xyz generic or should it reference a specific file in my sim?cmorley post=309070 userid=482If you use Qtvcp to render the vismach panel, you can embed it with a command such as this:
[DISPLAY]
# Embed tabs
EMBED_TAB_NAME= qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} vismach_mill_xyz
linuxcnc.org/docs/stable/html/gui/qtvcp-vismach.html
I switched over to Qt Vismach for the display. The panel is created and works, it just doesn't embed. The sim runs, its just that I get the following errors at startup.
Traceback (most recent call last):File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 43, in __call__return self._finalCall( *args, **named )^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: 'NoneType' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last):File "/usr/lib/python3/dist-packages/qtvcp/lib/qt_vismach/qt_vismach.py", line 255, in paintGLself.drawObjects()File "/usr/lib/python3/dist-packages/qtvcp/lib/qt_vismach/qt_vismach.py", line 325, in drawObjectsself.hud.draw()File "/usr/lib/python3/dist-packages/qtvcp/lib/qt_vismach/primitives.py", line 898, in drawself.fontbase, self._width, linespace = use_pango_font(self._font, 0, 128)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/qtvcp/lib/qt_vismach/primitives.py", line 66, in use_pango_fontGL.glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4))File "/usr/lib/python3/dist-packages/OpenGL/latebind.py", line 47, in __call__return self._finalCall( *args, **named )^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 700, in wrapperCallraise errFile "/usr/lib/python3/dist-packages/OpenGL/wrapper.py", line 693, in wrapperCallresult = wrappedOperation( *cArguments )^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 415, in __call__return self( *args, **named )^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckErrorraise self._errorClass(OpenGL.error.GLError: GLError(err = 1285,description = b'out of memory',baseOperation = glBitmap,pyArgs = (1,0,0,0,0,23.0,<OpenGL.arrays._buffers.Py_buffer object at 0x7fb250c629f0>,),cArgs = (1,0,0,0,0,23.0,<OpenGL.arrays._buffers.Py_buffer object at 0x7fb250c629f0>,),cArguments = (1,0,0,0,0,23.0,<OpenGL.arrays._buffers.Py_buffer object at 0x7fb250c629f0>,))
Please Log in or Create an account to join the conversation.
02 Sep 2024 19:50 #309225
by cmorley
Replied by cmorley on topic Add Tab to Axis View Pane
What version of linuxcnc are you using?
vismach_mill_xyz is a builtin example panel. Use it to check that embedding works.
You would need to adapt your Tk based panel to Qr it's not too much work but there are no how too examples.
vismach_mill_xyz is a builtin example panel. Use it to check that embedding works.
You would need to adapt your Tk based panel to Qr it's not too much work but there are no how too examples.
Please Log in or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 200
- Thank you received: 10
06 Sep 2024 22:42 #309532
by Project_Hopeless
Replied by Project_Hopeless on topic Add Tab to Axis View Pane
version 2.9.2.What version of linuxcnc are you using?
Please Log in or Create an account to join the conversation.
07 Sep 2024 15:10 #309579
by cmorley
Replied by cmorley on topic Add Tab to Axis View Pane
Just to confirm it works, try the sim config: axis/qtvcp/qtvismach_tab
you should get axis with a sample vismach in the tab.
you should get axis with a sample vismach in the tab.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds