Using Offsetpage Widget?

More
9 years 4 months ago #94256 by Todd Zuercher
I would like to setup a tab in axis using Gladevcp and the offsetpage widget. But I'm having a little trouble making it work.
I was able to get a tab showing the widget but it does not seem to populate the table with the existing offsets.
What is the trick to make it work right?

Please Log in to join the conversation.

More
9 years 4 months ago #94260 by cmorley
Replied by cmorley on topic Using Offsetpage Widget?
I'm going to guess that the offset widget is not finding the tooltable from the INI.
Most (all?) of the guis that use it set the file path explicitly.
something like:

offsetpage_widget_name.set_filename("../../../configs/sim/gscreen_custom/sim.var")

While it should work without this - that behavior has not been checked in a long time.

Chris M

Please Log in to join the conversation.

More
9 years 4 months ago #94268 by Todd Zuercher
I'm still not able to figure it out yet.

That line would go in the py file? but I haven't a clue what that file should even look like? (programming is not a strong point for me.)

Please Log in to join the conversation.

More
9 years 1 month ago #99477 by PKM
Replied by PKM on topic Using Offsetpage Widget?
Hello,
I can't get offsetpage widget to connect to linuxcnc instance.
It always has this error **** Offsetpage widget ERROR: LINEAR_UNITS not found in INI's TRAJ section
and won't read the offset values.
Anyone has a working example for offsetpage?

Please Log in to join the conversation.

More
9 years 3 weeks ago #99852 by andypugh
Replied by andypugh on topic Using Offsetpage Widget?
Have you tried simply adding a LINEAR_UNITS = to the [TRAJ] section?

Please Log in to join the conversation.

More
9 years 3 weeks ago #99853 by PKM
Replied by PKM on topic Using Offsetpage Widget?
Well that error message popped because I tried using offsetpage from a separate python file and it received no linuxcnc-specific environment variables.
But when I used offsetpage in Axis tab, with [TRAJ] LINEAR_UNITS = mm, it was still in inches.
Only [widget name].set_to_mm() solved the problem.

Please Log in to join the conversation.

More
6 months 1 week ago #345638 by Todd Zuercher
I'm trying to revisit this again. (and still failing)

I am trying to insert the Gladevcp Offsetpage widget into a tab in the Axis user interface. The tab and Offsetpage widget are opening and seem to function (sort of), but it is showing all offsets as zero. I can use the edit button in the widget to set an offset to some value, and that offset is set to that value in Linuxcnc. The problem is that the widget will not see what current offset values are or are set to by other means in Linuxcnc.

What am I missing to make the widget read the current offset values from Linuxcnc?

Please Log in to join the conversation.

More
6 months 1 week ago #345670 by cmorley
Replied by cmorley on topic Using Offsetpage Widget?
Can you post your glade file?

Please Log in to join the conversation.

More
6 months 1 week ago #345673 by Todd Zuercher
It's just a window with the Offsetpage widget. I don't have a copy here at home but (it's at work.)

Please Log in to join the conversation.

More
6 months 1 week ago #345674 by Todd Zuercher
I booted the current live image and created a new one like I had at work.

 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.771 seconds
Powered by Kunena Forum