ProbeBasic backplot issue?

More
15 Jun 2024 23:20 #303085 by B.Reilly01
I seem to be getting the same error:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 706, in update_position
active_wcs_offset = self._datasource.getWcsOffsets()[self._datasource.getActiveWcsIndex()]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: -1

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

More
15 Jun 2024 23:24 #303086 by Lcvette
Replied by Lcvette on topic ProbeBasic backplot issue?
Did you follow the latest instructions in the link? 

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

More
16 Jun 2024 19:16 #303121 by B.Reilly01
Yes, 3 times.... same result.

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

More
16 Jun 2024 21:50 #303132 by B.Reilly01
New wrinkle. I went back and homed the system. As soon as it moves the error pops up, but I noticed no WCS was selected. I cannot select one until the system homes, but once I can, the backplotter works and the error doesn't reappear. It looks like I'm back where Unilogic was. Now I just have to figure out what part of my config the system dislikes.
The following user(s) said Thank You: Lcvette

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

More
17 Jun 2024 02:52 #303143 by Lcvette
Replied by Lcvette on topic ProbeBasic backplot issue?
Do you have a program loading on startup?   Typically we load a program file named blank.ngc, it's located in the probe basic examples file.   Try copying it to your nc files folder and setting it as default program in your ini.   This initializes vtk on startup. 
The following user(s) said Thank You: B.Reilly01

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

More
17 Jun 2024 11:01 - 17 Jun 2024 13:24 #303166 by B.Reilly01
I do have a program loading on startup (3D_Chips). Weirdly, I do not have a pd_examples file in my nc folder, yet sim still loads fine referencing blank.ngc.
Last edit: 17 Jun 2024 13:24 by B.Reilly01. Reason: Clarification

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

More
17 Jun 2024 14:03 #303178 by Lcvette
Replied by Lcvette on topic ProbeBasic backplot issue?
in the file tab with blank.ngc loaded, click edit gcode button then save as while you are in your linuxcnc nc files directory and it should copy it over to the correct directory

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

More
17 Jun 2024 14:27 #303182 by Lcvette
Replied by Lcvette on topic ProbeBasic backplot issue?

I do have a program loading on startup (3D_Chips). Weirdly, I do not have a pd_examples file in my nc folder, yet sim still loads fine referencing blank.ngc.

ah in your start up line in the ini file, make sure to set G54 so the backplotter has a starting point!
[RS274NGC]
RS274NGC_STARTUP_CODE = F10 S300 G20 G17 G40 G49 G54 G64 P0.001 G80 G90 G91.1 G92.1 G94 G97 G98
PARAMETER_FILE = sim.var
OWORD_NARGS = 1
NO_DOWNCASE_OWORD = 1
SUBROUTINE_PATH = subroutines

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

More
17 Jun 2024 20:33 #303204 by B.Reilly01
I actually had already added G54. attached is my current ini and 3 hal files. Also of note, there is no blank.ngc on my system that i can find.
Attachments:

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

More
18 Jun 2024 02:30 #303218 by B.Reilly01
Found a solution: in my main hal file, I took out everything that wasn't axis or spindle and moved it to post-gui at the end. Now the error is gone. I just forgot to check if it backplots and if the offset is checked. I'll check that tomorrow.
The following user(s) said Thank You: Lcvette

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

Moderators: KCJLcvette
Time to create page: 0.324 seconds
Powered by Kunena Forum