Skip to content

Instantly share code, notes, and snippets.

@kinsamanka
Created November 26, 2014 22:32
Show Gist options
  • Select an option

  • Save kinsamanka/6dc95aee097814aa6016 to your computer and use it in GitHub Desktop.

Select an option

Save kinsamanka/6dc95aee097814aa6016 to your computer and use it in GitHub Desktop.
QtQuickVcp
#!/usr/bin/python
import sys
import os
import subprocess
import importlib
from machinekit import launcher
from time import *
launcher.register_exit_handler()
launcher.set_debug_level(5)
os.chdir(os.path.dirname(os.path.realpath(__file__)))
try:
launcher.check_installation() # make sure the Machinekit installation is sane
launcher.cleanup_session() # cleanup a previous session
# launcher.load_bbio_file('myoverlay.bbio') # load a BBB universal overlay
# launcher.install_comp('gantry.comp') # install a comp HAL component of not already installed
launcher.start_process("configserver ../Machineface ../Cetus/") # start the configserver
launcher.start_process('linuxcnc mini.ini') # start linuxcnc
except subprocess.CalledProcessError:
launcher.end_session()
sys.exit(1)
while True:
sleep(1)
launcher.check_processes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment