Running Karel Programs without pressing shift or the deadman switch

  • First of all, I want to thank you all for the wonderful community.


    I recently wrote a Karel program to backup all files (including subfolders) on MC to a new folder in UD1.

    If there are any interests, I will share the file once I have the chance to test it.


    My question is:

    Is there a way to run the Karel program without having to hold the Deadman switch and the shift key?

    I am currently calling the backup program from a TP program.
    Using the RUN command allows me to release the shift key, but I am hoping to be able to run the backup program even in Auto mode.
    One idea comes to mind is to use a digital output to trigger the Karel program. Is there a more straightforward way to do so?


    Thank you in advance.

  • For remote activation, you can trigger an KAREL program using an HTTP request from a web browser, or any program that can produce browser-style requests.


    http://Robot IP address/KAREL/KAREL Program Name?chVar1="Hello"&chVar2="World"

    chVar1 and chVar2 had to be declared in the KAREL file as String variables, with those exact names.

    The '?' is the separator between program name and variable list, '&' is separator between variables.

    Max 10 variables. Variables must be strings.


    Replace the bolded items with the robot IP and the name of the KAREL program. Variables are optional.

  • R47 Thank you for the suggestion. Running it with a Macro is a very logical step. I will most likely go this route.

    SkyeFire I wish our Robot was connected to the internet, but it is not at the moment. Thank you for the suggestion, it will come in handy one day.

  • SkyeFire I wish our Robot was connected to the internet, but it is not at the moment. Thank you for the suggestion, it will come in handy one day.

    I would not connect your robot to the internet. Not without very good firewalling. Robots don't get security patches the way PCs do.

    This trick is usable over a local network as well, however.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now