COM_SetDefaultNXT
Sets global default NXT handle (will be used by other functions as default)
Contents
Syntax
COM_SetDefaultNXT(h)
Description
COM_SetDefaultNXT(h) sets the given handle h to the global NXT handle, which is used by all NXT-Functions per default if no other handle is specified. To create and open an NXT handle (Bluetooth or USB), the functions COM_OpenNXT and COM_OpenNXTEx can be used. To retrieve the global default handle user COM_GetDefaultNXT.
Example
MyNXT = COM_OpenNXT('bluetooth.ini');
COM_SetDefaultNXT(MyNXT);
See also
COM_GetDefaultNXT, COM_OpenNXT, COM_OpenNXTEx,
Signature
- Author: Linus Atorf (see AUTHORS)
- Date: 2008/07/07
- Copyright: 2007-2010, RWTH Aachen University