On 10/10/2016 7:27 AM, euerka wrote:
> Yeah, it seems it failed to start mklauncher , the same as 
> (https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!searchin/machinekit/mklauncher|sort:relevance/machinekit/NH2b_19V7w0/8a8JoDDYCAAJ),
>  
> unfortunately there is no reply for this thread.
> 
> I tried on BBB side:
> 
>     debian@arm:~/anddemo$ mklauncher .
> 
> mklauncher runs but no messages displayed just sits there like its waiting
> 
> I open another terminal and run:
> 
>     debian@arm:~/anddemo$./run.py
> 
> 
> Result is the same:
> 
>     debian@arm:~/anddemo$ ./run.py
>     stopping realtime... done
>     cleaning up leftover session... done
>     starting realtime...done
>     loading anddemo.py... done
>     Traceback (most recent call last):
>        File "./run.py", line 39, in <module>
>          launcher.ensure_mklauncher()  # ensure mklauncher is started
>     AttributeError: 'module' object has no attribute 'ensure_mklauncher'
> 
> May I know how to start mklanucher?

You might try starting with one of the simpler demos.  I did an LED
demo at the 2015 Midwest RepRap Festival that showed several different
UIs (both local and remote) connected to the same HAL configuration
and hardware.

To start, you need a launch script or similar that gets all the pieces
running.  I _think_ this should probably still work, but I don't have
time to test it right now:

https://github.com/cdsteinkuehler/machine-configs/tree/master/led-demo

Start with the rundemo.py code.

It looks like my machinekit.ini didn't make it into git (which stored
it as a symlink).  You will need your own machinekit.ini file that
provides a custom UUID and make sure you set REMOTE=1 or none of the
network stuff will work.  The default machinekit.ini  can be found in
/etc/linuxcnc/machinekit.ini on recent package based installs.

...but the big piece is creating something like the rundemo.py script
that launches all the bits and pieces like the configserver (which
sends the Qt UI stuff to the client) before you try running your HAL file.

NOTE:  My example is mostly copied from an example Michael Haberler
did to control a motor, which IIRC is mostly copied from an example
Alexander Rossler created to show how to do things.  You may also find
the previous examples to be useful for review.

-- 
Charles Steinkuehler
[email protected]

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to