#linuxcnc-devel Logs

Aug 30 2018

#linuxcnc-devel Calendar

03:15 AM Jin|away is now known as Jin^eLD
04:27 AM TurBoss: hello
04:28 AM TurBoss: I compiled rtai for strecth but getting a ton of latency
04:28 AM TurBoss: lsmod show the rtai modules
04:29 AM TurBoss: I followed this
04:29 AM TurBoss: https://sites.google.com/site/thefreakengineer/tutorials/rtai-5-0-1-lubuntu-16-04-x64-2
04:29 AM TurBoss: used gcc-5
04:33 AM TurBoss: any ideas? I'm usinf the strech linuxcnc iso
04:33 AM TurBoss: using*
04:33 AM TurBoss: i386 computer
04:43 AM rmu|w: what is a ton of latency
04:44 AM TurBoss: rmu|w: the latency test gives like 1 million ns
04:44 AM TurBoss: the linuxcnc one
04:45 AM rmu|w: a millisecond... are you sure that is the latency and not the cycle time?
04:45 AM TurBoss: I'm just experimenting
04:45 AM TurBoss: sek
04:46 AM rmu|w: that would be kind of excessive even for non-realtime-kernel
04:47 AM TurBoss: servo thread max jitter 3000000
04:47 AM TurBoss: this machinw with wheezy gives 3000 ns max jitter
04:47 AM TurBoss: wheezy and rta
04:47 AM TurBoss: *rtai
04:47 AM TurBoss: current setup is stretch linuxcnc iso + linux 4.9.80 + rtai 5.1
04:48 AM TurBoss: I'm doing something very wrong :D
04:52 AM rmu|w: perhaps your linuxcnc build didn't recognize your RTAI installation and built without realtime support?
04:52 AM TurBoss: hmmmmmm
04:52 AM TurBoss: very posible
04:53 AM TurBoss: omg I'm using prebuilt linuxcnc
04:53 AM TurBoss: I need to compile it with the new kernel? sounds like yes
04:57 AM TurBoss: ok I'm idiot then :D
04:57 AM TurBoss: --with-realtime=/usr/realtime-$VERSION
04:57 AM TurBoss: thanks rmu|w
04:59 AM rmu|w: been there, done that ;-) yw
07:28 AM jepler: In the forum I've just set "e-mail administrators" to "no"; the previous setting was "unapproved posts". I think this will only affect me, there's a different setting for "moderators".
07:29 AM jepler: the setting for moderators is "all new posts" but it can be set to "no" or "unapproved posts".
01:09 PM TurBoss: hello
01:10 PM andypugh: jepler: Set me to “all"
01:10 PM TurBoss: after compilin all linux, rtai, linuxcnc with gcc5
01:10 PM TurBoss: i get this errot
01:10 PM TurBoss: http://dpaste.com/029QMD6
01:10 PM TurBoss: insmod: ERROR: could not insert module /usr/realtime/modules/rtai_hal.ko: File exists
01:11 PM TurBoss: this is under stretch linuxcnc iso i368
01:14 PM TurBoss: linux 4.9.80 rtai 5.1
01:14 PM TurBoss: linucnc master
01:14 PM andypugh: Can you try a sample config?
01:14 PM TurBoss: yes
01:15 PM andypugh: Might need a reboot if RTAI is stuck
01:15 PM TurBoss: sim axis?
01:15 PM andypugh: Yes, that should do.
01:15 PM TurBoss: ok reboot and launch sim
01:15 PM TurBoss: rebooting
01:19 PM TurBoss: andypugh: http://dpaste.com/0HJPJX9
01:19 PM TurBoss: I try to load the modules?
01:20 PM andypugh: Try “halrun” at the command line
01:20 PM andypugh: BRB
01:21 PM TurBoss: insmod: ERROR: could not insert module /home/turboss/devel/linuxcnc/rtlib/rtapi.ko: Unknown symbol in module
01:25 PM andypugh: uname -a?
01:26 PM TurBoss: Linux TurBoCNC 4.9.80 #5 SMP Thu Aug 30 17:43:40 CEST 2018 i686 GNU/Linux
01:26 PM TurBoss: doesn't show the rtai because i dint added
01:27 PM TurBoss: is needed ?
01:27 PM TurBoss: in the name I mean
01:27 PM andypugh: Well, it’s hard to tell if you are running an RTAI or preempt-rt kernel
01:28 PM andypugh: If the kernel name is the same
01:28 PM TurBoss: i patched linux with rtai
01:28 PM TurBoss: installed that one the rtai modules
01:28 PM andypugh: I am probably not the guy best positioned to help you
01:28 PM TurBoss: ya true
01:29 PM TurBoss: ok thank you
01:29 PM TurBoss: I'm just experimenting not in a hurry
02:30 PM mozmck: andypugh: re: setting you to "all", I think that setting jepler mentioned is global for all moderators, and is currently set to "all"
02:39 PM andypugh: OK
02:56 PM jak is now known as Guest24165
03:36 PM Jin^eLD: hmm, I have a weird error in pyvcp, it says: Error constructing checkbutton({'text': 'stopped', 'halpin': 'spindle-and-motion-stopped', 'initval': 0}): Invalid pin name length: max = 47 characters
03:37 PM Jin^eLD: but "spindle-and-motion-stopped" is less than 47 characters
03:37 PM Jin^eLD: what is it complaining about?
03:37 PM seb_kuzminsky: plus the name of the comp that makes the pin
03:37 PM Jin^eLD: aah, got it
03:37 PM Jin^eLD: thanks
03:38 PM seb_kuzminsky: but even 'pyvcp.spindle-and-motion-stopped' is less than 47, hmm
03:38 PM Jin^eLD: well my name is indeed longer
03:38 PM seb_kuzminsky: aha
03:38 PM Jin^eLD: not using pyvcp.
03:38 PM seb_kuzminsky: GUILTY
03:38 PM Jin^eLD: so I guess the message is correct :)
03:38 PM Jin^eLD: hehe
03:39 PM seb_kuzminsky: it's nice when things work as intended :-)
03:39 PM Jin^eLD: the message is a bit misleading though ;)
03:39 PM seb_kuzminsky: "patches gratefully accepted", as they say ;-)
03:41 PM Jin^eLD: fair enough :)
04:24 PM Jin^eLD: hmm, a vbox does not have a boxfill thingie like an hbox?
04:25 PM Jin^eLD: what's the best way to fill something vertically?
04:26 PM Jin^eLD: I am not happy with the right part: https://snag.gy/G7H0L6.jpg
04:26 PM Jin^eLD: an hbox separates each labelframe to the left and to the right, but how do I tell the components in the right frame to stay on top?
04:28 PM seb_kuzminsky: <boxfill="y">?
04:29 PM Jin^eLD: doc says those fills work only in an hbox?
04:29 PM seb_kuzminsky: there's a copy/paste error in the pyvcp docs, i think
04:29 PM seb_kuzminsky: http://linuxcnc.org/docs/devel/html/gui/pyvcp.html#_containers
04:30 PM Jin^eLD: ok let me try if those fill tags also work inside a vbox...
04:31 PM Jin^eLD: Error constructing vbox({'bd': 5, 'boxfill': u'y', 'relief': 'flat'}):
04:31 PM Jin^eLD: it does not like boxfill
04:32 PM Jin^eLD: <hbox boxfill="y"/> does not work either
04:32 PM Jin^eLD: ah, its <boxfill fill=
04:35 PM seb_kuzminsky: urgh, the docs are all kinds of wrong :-/
04:35 PM Jin^eLD: :)
04:36 PM Jin^eLD: that probably explains why I can not reach the desired effect...
04:41 PM JT-Shop: pyvcp docs?
04:42 PM Jin^eLD: ..they were quite helpful, apart from a few suposed glitches :)
04:42 PM Jin^eLD: *supposed
04:44 PM seb_kuzminsky: JT-Shop: yeah, we're looking at the hbox and vbox docs
04:44 PM JT-Shop: me too
04:45 PM seb_kuzminsky: inside the vbox section it says:
04:45 PM JT-Shop: vbox says By default, fill="x"
04:45 PM JT-Shop: and I assume it should be "y"
04:45 PM seb_kuzminsky: "Inside a Hbox, you can use..."
04:46 PM seb_kuzminsky: looking at lib/python/pyvcp_widgets.py, i see that default vbox fill is x, side is top, anchor is center, and expand is yes
04:46 PM seb_kuzminsky: for so the defaults in the docs are right
04:47 PM JT-Shop: ok
04:47 PM JT-Shop: just looking up Tk Pack
04:47 PM seb_kuzminsky: for hbox it's: fill=y, side=left, anchor=center, and expand=yes
04:47 PM seb_kuzminsky: so the defaults in the docs are correct for hbox too
04:47 PM JT-Shop: https://www.astro.princeton.edu/~rhl/Tcl-Tk_docs/tk/pack.n.html
04:48 PM seb_kuzminsky: ok i take it back, it's not "all kinds of wrong", it's just that one copy/paste error where it talks about hbox in the vbox section
04:48 PM seb_kuzminsky: so it's really me that's all kinds of wrong
04:48 PM JT-Shop: but no explanation what x and y is and that you have 4 options for fill
04:48 PM Jin^eLD: but then.. where do I add those fills exactly? I tried several variants but somehow could not reach the effect I wanted
04:48 PM JT-Shop: I'll fix that in the morning
04:48 PM Jin^eLD: https://github.com/jin-eld/mh400e-linuxcnc/blob/master/mh400e_gearbox.xml thats my XML
04:49 PM Jin^eLD: JT-Shop: once you get to it, maybe you could also quickly fix the closing tags in the 6.5 LEDs section
04:49 PM Jin^eLD: it says <height>n<height> instead of </height>
04:49 PM JT-Shop: np
04:50 PM Jin^eLD: and a couple of more there, they are all in the same example/explanation part
04:50 PM JT-Shop: just sent myself a note
04:50 PM Jin^eLD: thanks
04:50 PM JT-Shop: wow 329 lines of pyvcp!
04:50 PM * JT-Shop grabs his beer and heads down to the chicken yard
04:51 PM Jin^eLD: I should have used more attributes
04:51 PM Jin^eLD: XML is bloaty otherwise
05:15 PM Jin^eLD: nite
05:15 PM Jin^eLD is now known as Jin|away
05:39 PM seb_kuzminsky: thanks JT-Shop
05:50 PM jthornton: just wrapping up the fill, anchor and expand part