package mindstorm

  1. Overview
  2. Docs

Starting and stopping programs (.rxe files) on the brick.

val start : ?check_status:bool -> 'a conn -> string -> unit

start_program conn pgm starts the program named pgm.

val stop : ?check_status:bool -> 'a conn -> unit

start_program conn pgm starts the program named pgm.

stop_program conn stops the currently running program if any. If no program is running and check_status=true, the exception Mindstorm.NXT.Error(No_program) is raised.

val name : 'a conn -> string

stop_program conn stops the currently running program if any. If no program is running and check_status=true, the exception Mindstorm.NXT.Error(No_program) is raised.

Return the name of the current program or raise Mindstorm.NXT.Error(No_program) if no program is running.

OCaml

Innovation. Community. Security.