RWTH - Mindstorms NXT Toolbox

Functions - Alphabetical List


A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  



BT_CloseAllHandlesCloses and deletes all existing serial or file handles, which are open
BT_CloseHandleCloses and deletes an existing serial or file handle
BT_CollectPacketReads data from serial/Bluetooth port and retrieves exactly one packet
BT_CreatePacketGenerates a valid Bluetooth packet ready for transmission (i.e. calculates length)
BT_GetDefaultHandleReturns the global default Bluetooth handle if it was previously set
BT_MakeConfigFileCreates a Bluetooth configuration file which is needed to open a Bluetooth connection.
BT_OpenHandleOpens a Bluetooth connection using settings from the given configuration file
BT_SendPacketSends a Bluetooth packet (byte-array) via a Bluetooth channel (serial port)
BT_SetDefaultHandleSets a global default Bluetooth handle that will be used by the NXT-Functions if no other handle is specified.
CloseSensorCloses a specified sensor port (e.g. turns off the active light mode of the NXT light sensor)
checkStatusByteInterpretes the status byte of a return package and creates an error message
GetLightReads the current value of the NXT light sensor
GetMemoryCountGets the internal NXT memory counter (manual mapping replica)
GetMotorReads the current motor set by SetMotor(). Raises an error if no motor was set
GetMotorSettingsReturns the current motor data / settings (e.g. position, speed, etc.) from the specified motor
GetSoundReads the current value of the NXT sound sensor
GetSwitchReads the current value of the NXT switch / touch sensor
GetUltrasonicReads the current value of the NXT ultrasonic sensor
MOTOR_ASymbolic constant MOTOR_A (returns 0)
MOTOR_BSymbolic constant MOTOR_B (returns 1)
MOTOR_CSymbolic constant MOTOR_C (returns 2)
MotorRotateAbsRotates a motor to an absolute angle
NXT_GetBatteryLevelReturns the current battery level in milli volts
NXT_GetInputValuesProcesses a complete sensor reading, i.e. requests input values and collects the answer.
NXT_GetOutputStateRequests and retrieves an output motor state reading
NXT_LSGetStatusGets the number of available bytes from low speed (digital) sensor (e.g. ultrasonic)
NXT_LSReadReads data from a low speed (digital) sensor
NXT_LSWriteWrites the given data to a low speed (digital) sensor
NXT_PlayTonePlays a tone with the given frequency and duration
NXT_ResetInputScaledValueResets the sensors ScaledVal back to 0, depends on currently configured mode (see NXT_SetInputMode)
NXT_ResetMotorPositionResets NXT internal counter for specified motor, relative or absolute counter
NXT_SendKeepAliveSends a KeepAlive packet. Optional: requests sleep time limit.
NXT_SetBrickNameSets a new name for the NXT Brick (connected to the specified handle)
NXT_SetInputModeSets mode, configures and initializes sensor ready to be read out
NXT_SetOutputStateSends previously specified settings to current active motor.
NXT_StartProgramStarts the given program on the NXT Brick
NXT_StopProgramStops a specific program on the NXT Brick
OpenLightSets the parameter mode of the NXT light sensor
OpenSoundSets the parameter mode of the NXT sound sensor
OpenSwitchSets the parameter mode of the NXT switch / touch sensor
OpenUltrasonicInitializes and sets the mode of the NXT ultrasonic sensor
readFromIniFileReads parameters from a configuration file (usually *.ini)
ResetMotorAngleResets the relative angle counter for the given motor
SENSOR_1Symbolic constant SENSOR_1 (returns 0)
SENSOR_2Symbolic constant SENSOR_2 (returns 1)
SENSOR_3Symbolic constant SENSOR_3 (returns 2)
SENSOR_4Symbolic constant SENSOR_4 (returns 3)
SendMotorSettingsSends previously specified settings to current active motor.
SetAngleLimitSets the angle limit (in degrees) of the current motor port
SetMemoryCountSets the internal NXT memory counter (manual mapping replica)
SetMotorSets the current motor to use for motor setting commands
SetPowerSets the power of the current active motor
SetRampModeSets the runstate of the current active motor
SetTurnRatioSets the turn ratio of the current active motor
SpeedRegulationEnables / disables the speed regulation mode of the current active motor
StopMotorStops / brakes specified motor. (Synchronisation will be lost after this)
SwitchLampSwitches the LEGO lamp on or off (has to be connected to a motor port)
SyncToMotorEnables synchronization regulation for current active and specified motor
textOutWrapper for fprintf() which can optionally write screen output to a logfile
ticticSimilar to MATLAB's tic(), but extended to save "more states"
toctocSimilar to MATLAB's toc(), but extended to save "more states"
WaitForMotorPauses execution until specific motor is not running anymore.

Back to RWTH - Mindstorms NXT Toolbox