>
> update
>
> #!/usr/bin/python
>
> import sys
> import os
> import subprocess
> import time
> from machinekit import launcher
> from machinekit import config
>
> launcher.register_exit_handler()
> #launcher.set_debug_level(5)
> os.chdir(os.path.dirname(os.path.realpath(__file__)))
>
> mkconfig = config.Config()
> if 'MACHINEKIT_INI' not in os.environ:  # export for package installs
>     os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI
>     
> if 'HAL_RTMOD_DIR' not in os.environ:  # export for package installs
>     os.environ['HAL_RTMOD_DIR'] = '/usr/lib/linuxcnc'
>     
> #if 'DISPLAY' not in os.environ:  # export for connecting to display
> #    os.environ['DISPLAY'] = ':0.0'
>
> try:
>     launcher.check_installation()
>     launcher.cleanup_session()
> #    launcher.load_bbio_file('furaday_stepgen.bbio')
>
> ###REALLY UNSURE ABOUT YOUR BBIO file name
>
>     launcher.start_process('machinekit Panther-3-Axis.ini')
> ###REALLY UNSURE ABOUT YOUR ini file name
>
>         launcher.register_exit_handler()  # enable on ctrl-C, needs to 
> executed after HAL files
>     launcher.ensure_mklauncher()  # ensure mklauncher is started
>     launcher.start_process("configserver -n SuperNC /home/machinekit/Cetus")
>     while True:
>         launcher.check_processes()
>         time.sleep(1)
> except subprocess.CalledProcessError:
>     launcher.end_session()
>     sys.exit(1)
>
> sys.exit(0)
>
>
>
How do you start Axis ?
 

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/bc81d671-9e34-415d-87e7-ed6054d7f2ff%40googlegroups.com.

Reply via email to