Flexible GUI

More
2 years 3 months ago - 2 years 3 months ago #306293 by MennilTossFlykune
Replied by MennilTossFlykune on topic Flexible GUI
In the plot widget, to automatically reload a file when an offset has changed you could maybe use the fingerprint
For example:
Code:
        fingerprint = (self.logger.npts,         self.soft_limits(),         s.actual_position,         s.motion_mode,         s.current_vel,         s.joint_actual_position,         s.homed,         s.limit,             s.tool_in_spindle,                      s.g5x_offset,         s.g92_offset,         s.rotation_xy,         s.tool_offset)         if fingerprint[9:12] != self.fingerprint[9:12] or s.file != self._current_file:             if self.display_loaded:                 self.load()         if fingerprint != self.fingerprint:             self.fingerprint = fingerprint                         self.update()
files.catbox.moe/5km48d.mp4
Last edit: 2 years 3 months ago by MennilTossFlykune. Reason: couldn't embed video
The following user(s) said Thank You: blazini36, JT

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

More
2 years 3 months ago - 2 years 3 months ago #306330 by JT
Replied by JT on topic Flexible GUI

In the plot widget, to automatically reload a file when an offset has changed you could maybe use the fingerprint
For example:

Code:
        fingerprint = (self.logger.npts,         self.soft_limits(),         s.actual_position,         s.motion_mode,         s.current_vel,         s.joint_actual_position,         s.homed,         s.limit,             s.tool_in_spindle,                      s.g5x_offset,         s.g92_offset,         s.rotation_xy,         s.tool_offset)         if fingerprint[9:12] != self.fingerprint[9:12] or s.file != self._current_file:             if self.display_loaded:                 self.load()         if fingerprint != self.fingerprint:             self.fingerprint = fingerprint                         self.update()
files.catbox.moe/5km48d.mp4
Can you share the whole code for what I saw in the video? For some reason the plot is not moving when I set an offset. The xyz origin marker is the only thing that moves...

JT
Last edit: 2 years 3 months ago by JT.

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

More
2 years 3 months ago #306356 by blazini36
Replied by blazini36 on topic Flexible GUI

In the plot widget, to automatically reload a file when an offset has changed you could maybe use the fingerprint
For example:

Code:
        fingerprint = (self.logger.npts,         self.soft_limits(),         s.actual_position,         s.motion_mode,         s.current_vel,         s.joint_actual_position,         s.homed,         s.limit,             s.tool_in_spindle,                      s.g5x_offset,         s.g92_offset,         s.rotation_xy,         s.tool_offset)         if fingerprint[9:12] != self.fingerprint[9:12] or s.file != self._current_file:             if self.display_loaded:                 self.load()         if fingerprint != self.fingerprint:             self.fingerprint = fingerprint                         self.update() https://files.catbox.moe/5km48d.mp4
 
Any chance you can share the whole configuration you have shown in your post a couple pages back? That looks pretty good. I've been pecking at a Flex UI for a bit but haven't gotten very far yet.

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

More
2 years 3 months ago #306367 by JT
Replied by JT on topic Flexible GUI
Ok, I did figure out that I can't test the plotter with a sim running. Everything works as it should when I run from installed.

I still would like to look at your code if possible.

JT

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

More
2 years 3 months ago - 2 years 3 months ago #306370 by MennilTossFlykune
Replied by MennilTossFlykune on topic Flexible GUI
I wanted to be able to test it in qtdragon so it's PyQt5 instead
This one does work as a standalone window
Last edit: 2 years 3 months ago by MennilTossFlykune. Reason: attached wrong file
The following user(s) said Thank You: JT

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

More
2 years 3 months ago #306451 by MennilTossFlykune
Replied by MennilTossFlykune on topic Flexible GUI

Any chance you can share the whole configuration you have shown in your post a couple pages back? That looks pretty good. I've been pecking at a Flex UI for a bit but haven't gotten very far yet.
I don't think I have it anymore. It was based on Persei8's QtDragon version but when the plotter stuff is all working I'll modify the standard QtDragon UI instead.

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

Moderators: JT
Time to create page: 0.296 seconds
Powered by Kunena Forum