#linuxcnc-devel | Logs for 2016-11-08

Back
[10:35:29] <skunkworks> zlog
[14:07:24] <terkaa> hi
[15:45:06] <andypugh> cradek:
[15:45:13] <andypugh> Ye awake?
[15:47:16] <andypugh> There is something slightly puzzing afoot with Touchy touchy-off
[15:47:18] <andypugh> https://imagebin.ca/v/31JSrsK5xwUY
[15:47:42] <andypugh> Just wondering if you had any ideas/
[15:52:57] <andypugh> Oh, wait, it’s all my fault. Not sure how or why, but turning off the embedded tab changes the behaviour.
[15:56:02] <andypugh> And, just to really confuse me, putting the embedded tab back in doesn’t bring the problem back.
[15:56:11] <andypugh> Huh?
[16:05:09] <cradek> you poked set tool and X and Z are missing?
[16:05:21] <andypugh> Yes
[16:05:34] <cradek> ummmm
[16:06:14] <andypugh> It was cold in the workshop so I came in to see if it was the same on the VM. It was. So I removed my embedded tab, and the problem went away. So I put the embedded tab back, and the problem syated away.
[16:06:29] <cradek> words = words[:i] + self.axes + words[i+1:]
[16:06:37] <cradek> self.axes must be unset or wrong?
[16:06:54] <cradek> but you have XZ buttons...
[16:06:57] <cradek> I got nothin
[16:08:17] <andypugh> Nothing where?
[16:08:28] <cradek> I mean I have no guesses
[16:09:44] <andypugh> OK, just wondering if you had seen it before
[16:10:51] <andypugh> Another quirk to work around, Touchy seems to run the postgui hal file before embedding GladeVCP tabs, so if the tabs have HAL pins, it doesn’t work (with 2.7.4, I should point out)
[16:13:05] <cradek> hm yeah, maybe that's in the wrong place
[16:13:42] <cradek> running touchy.hal/postgui.hal is in __main__ but tab embedding is in the idle loop after other one-time setup
[16:13:49] <jepler> It looks like set_dynamic_tabs just forks off the tab-creating code with subprocess.Popen and has no way of waiting for them to be "Ready"
[16:14:31] <mozmck> I use Gscreen, but had the same problem.
[16:14:54] <mozmck> You can pass a hal file in the EMBED_TAB_COMMAND
[16:15:15] <mozmck> EMBED_TAB_COMMAND = gladevcp -x {XID} -u thc_box.py -H thc_box.tcl thc_box.glade
[16:15:16] <cradek> seems like a tricky trouble spot
[16:15:50] <mozmck> That's how I've been doing it and it works fine.
[16:17:00] <jepler> it feels like someone invested in making embedded tabs work better does need to dig in and find proper solutions for these problems.
[16:17:14] <jepler> I fear that, despite X having support for this kind of embedding, we are missing some glue that makes it work well for linuxcnc / hal apps
[16:17:34] <andypugh> I have code to polish up and document that has Touchy send a signal to the embedded tabs to say “your visible”
[16:17:47] <jepler> too bad you have to become an expert at X Window System programming just at the dusk of X.
[16:20:50] <andypugh> mozmck: What happens in yout thc_box.tcl HAL file?
[16:22:49] <mozmck> andypugh: I connect pins from the thc_box gladevcp object. It is tcl because I wanted to have more error checking (which I still need to do).
[16:23:47] <andypugh> Ah, OK! I assumed it was doing a wait. But that gets called by the embedder? Perfect :-)
[16:24:21] <mozmck> Yes, it calls the hal file after the component is ready - similar to the postgui hal
[16:25:40] <mozmck> andypugh: http://linuxcnc.org/docs/2.7/html/gui/gladevcp.html#_integrating_into_touchy
[16:29:37] <andypugh> Yes, thanks, that works a treat
[16:30:03] <andypugh> and, cradek, the axis names came back too. <baffled>
[16:30:25] <andypugh> Now lets see if I can make something
[17:52:04] <andypugh> And yes. It all works and there was nothing (undocumented) wrong.
[17:52:24] <andypugh> And my lathe now has a spindle-nose adaptor for MT2
[17:52:51] <andypugh> (after lots of lovely sparky hard-turning)
[23:16:23] <KGB-linuxcnc> 03Sebastian Kuzminsky 052.7 4c20c8a 06linuxcnc 10VERSION 10debian/changelog LinuxCNC 2.7.8 * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=4c20c8a
[23:16:23] <KGB-linuxcnc> 03Sebastian Kuzminsky 05signed tags 8f214d7 06linuxcnc 03v2.7.8 LinuxCNC v2.7.8 (tagged commit: 4c20c8a) * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=8f214d7