NXT_StartProgram
Starts the given program on the NXT Brick
Contents
Syntax
NXT_StartProgram(filename, [handle])
status = NXT_StartProgram(filename, [handle])
Description
NXT_StartProgram(filename) starts the embedded NXT Brick program determined by the string filename. The maximum length is limited to 15 characters. The file extension '.rxe' is added automatically if it was omitted. The output argument status is optional and return the error status of the collected packet. If it is omitted, not reply packet will be requested (this is significantly faster via Bluetooth).
The last parameter handle is optional. If no NXT handle is specified the default one (COM_GetDefaultNXT) is used.
For more details see the official LEGO Mindstorms communication protocol.
Examples
NXT_StartProgram('ResetCounter');
handle = COM_OpenNXT('bluetooth.ini'); NXT_StartProgram('Demo.rxe', handle);
See also
NXT_StopProgram, NXT_GetCurrentProgramName,
Signature
- Author: Alexander Behrens, Linus Atorf (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2010, RWTH Aachen University