AppyBuilder
  • AppyBuilder Introduction
  • Release Notes
  • Terms of Service
  • AppyBuilder Editors
    • Design Editor
    • Blocks Editor
    • Components
  • Live Testing
  • Components
    • Reference
      • User Interface
        • Button
        • Checkbox
        • Chronometer
        • DatePicker
        • FloatingButton
        • GalleryViewer
        • GridView
        • Image
        • Label
        • ListPicker
        • ListPickerCustom
        • ListView
        • ListViewCustom
        • Notifier
        • PasswordTextBox
        • ProgressBar
        • RatingBar
        • Slider
        • Spinner
        • Switch
        • TextBox
        • Toggler
        • WebViewer
        • TimePicker
        • LinedTextBox
      • Effects
        • Decoration
        • Sidebar
        • Snackbar
      • Layout
        • Horizontal Arrangement
        • Horizontal Scroll Arrangement
        • Table Arrangement
        • Vertical Arrangement
        • Vertical Scroll Arrangement
      • Drawing and Animation
        • Ball
        • Canvas
        • Image Sprite
      • Maps
        • Circle
        • FeatureCollection
        • LineString
        • Map
        • Marker
        • Polygon
        • Rectangle
      • Media
        • Camcorder
        • Camera
        • ImagePicker
        • Player
        • Sound
        • SoundRecorder
        • SpeechRecognizer
        • TextToSpeech
        • VideoPlayer
        • YandexTranslate
      • Connectivity
        • ActivityStarter
        • BluetoothClient
        • NetworkManager
        • Web
        • WiFiManager
      • LegoMindStorms
        • Ev3ColorSensor
        • Ev3Commands
        • Ev3GyroSensor
        • Ev3Motors
        • Ev3Sound
        • Ev3TouchSensor
        • Ev3UI
        • Ev3UltraSonicSensor
        • NxtDirectCommands
        • NxtDrive
        • NxtLightSensor
        • NxtTouchSensor
        • Ev3ColorSensor
      • Storage
        • Airtable
        • File
        • FirebaseDB
        • FTPManager
        • FusionTableControl
        • TinyDB
        • TinyWebDB
      • Sensors
        • Accelerometersensor
        • BarcodeScanner
        • BatteryManager
        • Clock
        • Gyroscopesensor
        • LightSensor
        • LocationSensor
        • MagneticFieldSensor
        • MemoryInfo
        • NearField
        • OrientationSensor
        • Pedometer
        • ProximitySensor
        • PressureSensor
        • SoundSensor
        • TemperatureSensor
        • ProximitySensor
      • Social
        • ContactPicker
        • EmailPicker
        • PhoneCall
        • PhoneNumberPicker
        • Sharing
        • Texting
        • Twitter
      • Experimental
        • CloudDB
      • Visualization
        • GoogleMap
        • XYChart
      • Advanced
        • KitchenSink
        • OneSignalPush
        • PushNotification
        • SQLite
      • Monetize
        • AdAmazon
        • AdAmazonInterstitial
        • AdMob
        • AdMobInterstitial
        • AdMobRewardedVideo
        • InAppBilling
        • MMediaInterstitial
  • Tutorials
    • Openstreet Map
    • OneSignalPush
    • Creating E-book
    • Basic
      • Simulating Progress Bar
      • Creating Splash Screen
      • Adding Privacy Policy
      • Package Name
      • Beginner - Talk to Me app
      • Beginner Tutorial
    • Animation
      • Animation & Collision Part I
      • Animation & Collision Part II
    • Monetization
      • AdMob Banner
      • AdMob Interstitial
      • AdMob Rewarded Video
      • Increasing Monetization Revenue
    • Using RadioButtons
    • keystore
    • Firebase - Advanced
  • Extensions
  • Concept Cards
    • Bouncing Sprites
    • Sprite Timed Movement
    • Sprite Movement on Timer
    • Adding Sound
    • Speech Recognition
    • Random Numbers
    • Fling Movement
    • Movement with Sensors
    • Drawing on Canvas
    • Multiple Screens
    • Creating Custom Colors
    • Movement with Buttons
    • Shaking Phone
    • Collision Detection
    • Dragging A Sprite
  • Advanced
    • Source File Structure
  • Code Editor
Powered by GitBook
On this page
  • Properties
  • BluetoothClient
  • Methods
  • DeleteFile (text fileName)
  • DownloadFile (text source, text destination)
  • GetBatteryLevel ()
  • GetBrickName ()
  • GetCurrentProgramName ()
  • GetFirmwareVersion ()
  • GetInputValues (text sensorPortLetter)
  • GetOutputState (text motorPortLetter)
  • KeepAlive ()
  • ListFiles (text wildcard)
  • LsGetStatus (text sensorPortLetter)
  • LsRead (text sensorPortLetter)
  • LsWrite (text sensorPortLetter, list list, number rxDataLength)
  • MessageRead (number mailbox)
  • MessageWrite (number mailbox, text message)
  • PlaySoundFile (text fileName)
  • PlayTone (number frequencyHz, number durationMs)
  • ResetInputScaledValue (text sensorPortLetter)
  • ResetMotorPosition (text motorPortLetter, boolean relative)
  • SetBrickName (text name)
  • SetInputMode (text sensorPortLetter, number sensorType, number sensorMode)
  • SetOutputState (text motorPortLetter, number power, number mode, number regulationMode, number turnRatio, number runState, number tachoLimit)
  • StartProgram (text programName)
  • StopProgram ()
  • StopSoundPlayback ()
  1. Components
  2. Reference
  3. LegoMindStorms

NxtDirectCommands

A component that provides a low-level interface to a LEGO MINDSTORMS NXT robot, with functions to send NXT Direct Commands

Properties

BluetoothClient

The BluetoothClient component that should be used for communication. Must be set in the Designer

Methods

DeleteFile (text fileName)

Delete a file on the robot.

DownloadFile (text source, text destination)

Download a file to the robot.

GetBatteryLevel ()

Get the battery level for the robot. Returns the voltage in millivolts.

GetBrickName ()

Get the brick name of the robot.

GetCurrentProgramName ()

Get the name of currently running program on the robot.

GetFirmwareVersion ()

Get the firmware and protocol version numbers for the robot as a list where the first element is the firmware version number and the second element is the protocol version number.

GetInputValues (text sensorPortLetter)

Reads the values of an input sensor on the robot. Assumes sensor type has been configured via SetInputMode.

GetOutputState (text motorPortLetter)

Reads the output state of a motor on the robot.

KeepAlive ()

Keep Alive. Returns the current sleep time limit in milliseconds.

ListFiles (text wildcard)

Returns a list containing the names of matching files found on the robot.

LsGetStatus (text sensorPortLetter)

Returns the count of available bytes to read.

LsRead (text sensorPortLetter)

Reads unsigned low speed data from an input sensor on the robot. Assumes sensor type has been configured via SetInputMode.

LsWrite (text sensorPortLetter, list list, number rxDataLength)

Writes low speed data to an input sensor on the robot. Assumes sensor type has been configured via SetInputMode.

MessageRead (number mailbox)

Read a message from a mailbox (1-10) on the robot.

MessageWrite (number mailbox, text message)

Write a message to a mailbox (1-10) on the robot.

PlaySoundFile (text fileName)

Play a sound file on the robot.

PlayTone (number frequencyHz, number durationMs)

Make the robot play a tone.

ResetInputScaledValue (text sensorPortLetter)

Reset the scaled value of an input sensor on the robot.

ResetMotorPosition (text motorPortLetter, boolean relative)

Reset motor position.

SetBrickName (text name)

Set the brick name of the robot.

SetInputMode (text sensorPortLetter, number sensorType, number sensorMode)

Configure an input sensor on the robot.

SetOutputState (text motorPortLetter, number power, number mode, number regulationMode, number turnRatio, number runState, number tachoLimit)

Sets the output state of a motor on the robot.

StartProgram (text programName)

Start execution of a previously downloaded program on the robot.

StopProgram ()

Stop execution of the currently running program on the robot.

StopSoundPlayback ()

Stop sound playback.

PreviousEv3UltraSonicSensorNextNxtDrive

Last updated 7 years ago