error = 1;
while(error),
    % PWM
    [rx,error,errorstr]=applyjoint(H, 3, 3, [0 0 0]);
    [rx,error,errorstr]=applyjoint(H, 1, 3, [0 0 0]);
        
end

killcom(H)