component string "give string"; description """ Usage : halcmd loadrt string stepfilepath=yourfilepath/etc """; author " "; license "GPLv2 or greater"; option singleton yes; pin out bit bit_out ""; pin in bit bit_in ""; pin out float float_out ""; param rw float param_rw ""; option extra_setup yes; function _; ;; #include "rtapi_math.h" char *stepfilepath; RTAPI_MP_STRING(stepfilepath,"stepfilepath"); FUNCTION(_) { // Your c code. } EXTRA_SETUP(){ if (stepfilepath==0) { rtapi_print_msg(RTAPI_MSG_ERR,"string missing\n"); return -EINVAL; } rtapi_print_msg(RTAPI_MSG_ERR,"stepfilepath : %s\n",stepfilepath); return(0); }