RWTH - Mindstorms NXT Toolbox

SendToNXT

Send motor settings to the NXT brick.

Contents

Syntax

SendToNXT(OBJ) or OBJ.SendToNXT

SendToNXT(OBJ, HANDLE) or OBJ.SendToNXT(HANDLE)

Description

SendToNXT(OBJ) or OBJ.SendToNXT sends the motor settings in OBJ to the NXT brick.

SendToNXT(OBJ, HANDLE) or OBJ.SendToNXT(HANDLE) uses HANDLE to identifiy the connection to use for this command.

For a valid list of properties and how they affect the motors' behaviour, see the documentation for the class constructor NXTmotor.

Limitations

This function has a built-in waiting-period. A pause of 75ms will be made both before and after sending the actual command to the NXT, resulting in a total execution time of about 150ms for this command.

If you send a command to the NXT without waiting for the previous motor operation to have finished, the command will be dropped (the NXT indicates this with a high beep tone). Use the motor-objects method WaitFor to make sure the motor is ready for new commands.

See also

NXTmotor, ReadFromNXT, Stop, WaitFor, ResetPosition

Signature