603,822 active members*
3,833 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2012
    Posts
    28

    Anybody had any luck setting up touchy??

    Hi folks,

    I'm praying somebody here can help me. I've been trying for the past few days to set up touchy (the touch screen friendly GUI) in linuxcnc, so I can use it with my new touch screen monitor instead of the default "axis" GUI. Has anyone had any joy successfully getting this working? I've followed all the relevant documentation on linuxcnc's website but I don't find it particularly helpful at tbh.


    Any info of how you get linuxcnc to boot the touchy GUI would be much appreciated..

    Many kind regards

    John.

  2. #2
    Join Date
    Dec 2005
    Posts
    619

    Re: Anybody had any luck setting up touchy??

    What problems are you having? Error messages, those kinds of things would help us help you. There've been many successful implementations of the Touchy screen. We need to know more about what issues you're having to be able to help you out.

    Have you created the touchy.hal file and set the DISPLAY = touchy under the [DISPLAY] section of your .ini file?

    Mark

  3. #3
    Join Date
    Jul 2012
    Posts
    28

    Re: Anybody had any luck setting up touchy??

    Hi Mark,

    Thanks for the reply.

    I've created a file in the same folder as my .ini file and called it touchy.hal, and I've also changed "DISPLAY = axis" to "DISPLAY = touchy".



    The error I get when I try and load LinuxCNC is:-


    Print file information:
    RUN_IN_PLACE=no
    LINUXCNC_DIR=
    LINUXCNC_BIN_DIR=/usr/bin
    LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
    LINUXCNC_SCRIPT_DIR=
    LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
    LINUXCNC_CONFIG_DIR=
    LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
    INIVAR=inivar
    HALCMD=halcmd
    LINUXCNC_EMCSH=/usr/bin/wish8.5
    LINUXCNC - 2.5.0
    Machine configuration directory is '/home/jamesbishop/linuxcnc/configs/CNC_Config'
    Machine configuration file is 'CNC_Config.ini'
    INIFILE=/home/jamesbishop/linuxcnc/configs/CNC_Config/CNC_Config.ini
    PARAMETER_FILE=linuxcnc.var
    TASK=milltask
    HALUI=
    DISPLAY=touchy
    Starting LinuxCNC...
    Starting LinuxCNC server program: linuxcncsvr
    Loading Real Time OS, RTAPI, and HAL_LIB modules
    Starting LinuxCNC IO program: io
    Starting TASK program: milltask
    Starting DISPLAY program: touchy
    INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
    ini /home/jamesbishop/linuxcnc/configs/CNC_Config/CNC_Config.ini
    Shutting down and cleaning up LinuxCNC...
    Killing task linuxcncsvr, PID=1771
    Killing task milltask, PID=1860
    Removing HAL_LIB, RTAPI, and Real Time OS modules
    Removing NML shared memory segments
    Cleanup done

    Debug file information:
    Can not find -sec MOT -var MOT -num 1
    Can not find -sec IO -var IO -num 1
    Can not find -sec LINUXCNC -var NML_FILE -num 1
    Can not find -sec EMC -var NML_FILE -num 1
    /usr/bin/touchy:81: GtkWarning: _gdk_drawable_get_source_drawable: assertion `GDK_IS_DRAWABLE (drawable)' failed
    pix = gtk.gdk.pixmap_create_from_data(None, pix_data, 1, 1, 1, color, color)
    Traceback (most recent call last):
    File "/usr/bin/touchy", line 793, in
    hwg = touchy(sys.argv[2])
    File "/usr/bin/touchy", line 202, in __init__
    self.filechooser = filechooser.filechooser(gtk, linuxcnc, filechooser_labels, filechooser_eventboxes, self.listing)
    File "/usr/lib/pymodules/python2.6/touchy/filechooser.py", line 26, in __init__
    self.reload(0)
    File "/usr/lib/pymodules/python2.6/touchy/filechooser.py", line 62, in reload
    self.files = os.listdir(self.dir)
    OSError: [Errno 2] No such file or directory: '/home/jamesbishop/emc2/nc_files'
    1771
    PID TTY STAT TIME COMMAND
    1860
    PID TTY STAT TIME COMMAND
    Stopping realtime threads
    Unloading hal components

    Kernel message information:
    [ 103.787352] I-pipe: Domain RTAI registered.
    [ 103.787357] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
    [ 103.787359] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
    [ 103.787392] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
    [ 103.787394] PIPELINE layers:
    [ 103.787396] f82b9e20 9ac15d93 RTAI 200
    [ 103.787397] c085cb20 0 Linux 100
    [ 103.800866] RTAI[malloc]: global heap size = 2097152 bytes, .
    [ 103.801012] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes.
    [ 103.801015] RTAI[sched]: hard timer type/freq = APIC/12556305(Hz); default timing: periodic; linear timed lists.
    [ 103.801018] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3013193000 hz.
    [ 103.801020] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
    [ 103.801081] RTAI[usi]: enabled.
    [ 103.829329] RTAI[math]: loaded.
    [ 103.901206] config string '0x378 out '
    [ 103.905165] classicladder_rt: module license 'LGPL' taints kernel.
    [ 103.905168] Disabling lock debugging due to kernel taint
    [ 103.906126] creating ladder-state
    [ 107.085522] RTAI[math]: unloaded.
    [ 107.100194] SCHED releases registered named ALIEN RTGLBH
    [ 107.132204] RTAI[malloc]: unloaded.
    [ 107.232032] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
    [ 107.233698] I-pipe: Domain RTAI unregistered.
    [ 107.233739] RTAI[hal]: unmounted.





    Does any text have to go in the touchy.hal file I have created? At the moment it is just empty and I don't really see what this file is meant to be doing as it is...


    Many thanks for any help in advanced.

    John.

  4. #4
    Join Date
    Feb 2007
    Posts
    711

    Re: Anybody had any luck setting up touchy??

    Code:
    OSError: [Errno 2] No such file or directory: '/home/jamesbishop/emc2/nc_files'
    change ~/emc2/nc_files to something that exists under "program_prefix" in the [DISPLAY] section of your ini.
    it most likely should be ~/linuxcnc/nc_files

  5. #5
    Join Date
    Oct 2006
    Posts
    323

    Re: Anybody had any luck setting up touchy??

    Were you running classic ladder with your system under the Axis interface? What do you use the classicladder for, toolchanger, touch plate, or?? Looks like the classicladder_rt is interfering with Touchy. Need it or not, try to comment it out of your hal file and see if Touchy will run. If it runs, then you will have to see where loading the classicladder_rt needs to be or how to implement when using Touchy. I suspect this may be one of the 'needs of a separate Touchy hal file,but don't know first hand. I've never messed with Touch firsthand, just looking at your dmesg file.

  6. #6
    Join Date
    Dec 2005
    Posts
    619

    Re: Anybody had any luck setting up touchy??

    Quote Originally Posted by alan_3301 View Post
    Code:
    OSError: [Errno 2] No such file or directory: '/home/jamesbishop/emc2/nc_files'
    change ~/emc2/nc_files to something that exists under "program_prefix" in the [DISPLAY] section of your ini.
    it most likely should be ~/linuxcnc/nc_files
    Beat me to it. If the OP looks above that portion of the message, he'll see his configs directory as "/home/jamesbishop/linuxcnc/configs", so I would bet that changing the emc2 to linuxcnc in the ini file would fix the problem.

  7. #7
    Join Date
    Jul 2012
    Posts
    28
    Thanks guys, major help! That's cracked it! Really appreciate your help, couldn't have done it without you.

  8. #8
    Join Date
    Dec 2005
    Posts
    619

    Re: Anybody had any luck setting up touchy??

    Outstanding! Glad you got 'er going!

    Just for curiosity's sake, I was wondering how the emc2 got in there. Was it a cut and paste from the web site or documentation, or was it a legacy item from one of your previous installs? If it was a cut and paste, we need to get that documentation fixed.

  9. #9
    Join Date
    Mar 2004
    Posts
    1661

    Re: Anybody had any luck setting up touchy??

    Why touchy and not Gmoccapy? It's pretty darn awesome as a touch GUI and is used in industrial production lines.

Similar Threads

  1. Has anyone done a touchy user interface for the lathe yet?
    By frontrange in forum LinuxCNC (formerly EMC2)
    Replies: 0
    Last Post: 04-09-2014, 01:00 AM
  2. Touchy GUI help
    By jimbojones1000 in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 07-28-2012, 02:21 PM
  3. Touchy hardware?
    By drmacro in forum LinuxCNC (formerly EMC2)
    Replies: 5
    Last Post: 04-11-2012, 04:18 PM
  4. Touchy interface with different GTK theme
    By chester88 in forum LinuxCNC (formerly EMC2)
    Replies: 12
    Last Post: 07-06-2011, 07:08 AM
  5. Just my luck Sx3
    By Rainman229 in forum Syil Products
    Replies: 7
    Last Post: 09-23-2009, 06:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •