Compile errors and warnings can occur when you’re creating your LEGO Mindstorm programs. Fortunately, Mindstorms is able to prevent you from most compile errors that you could make and any errors that do occur are clearly marked. This video will demonstrate some common errors that you may come across and how to address them.
- [Voiceover] In programming there are generally…two types of errors or warnings you can run into,…compile errors and runtime errors.…Compile errors are problems…that prevent a program from running…because it doesn't follow the syntax…or semantics of the programming language.…In text-based programming misspelling a function name,…forgetting a semicolon or using an improper data type…will cause a compile error.…When one of these things happen…the program doesn't understand what to do…so it can't run.…You can think of these errors like…when someone asks you a question…in a different language.…
If you're not familiar with the language…you're unable to understand them…so you can't answer the question.…In text-based programming languages like C or Java…you might not realize you have syntax errors in your code…until you try to compile and run your program.…When that happens you'll get a message…or set of messages stating why it can't execute.…In graphical programming you can run…into similar compile errors.…Here I've opened project 08_01_Error_Start.…
AuthorOlivia Chiu Stone
Learn how to unpack the hardware, connect to the programming interface, run prebuilt programs, and control the motors and sensors. Chapter 6, "Adding Flow to a Program," covers advanced programming topics such as transferring data between blocks, using variables to store temporary data, programming conditional logic, and looping actions to run again and again. By the end of the course, you'll have the skills to bring your own robotic creations to life.
- Installing the LEGO Mindstorms software
- Exploring the programming interface
- Connecting to the EV3 brick
- Downloading and running prebuilt programs
- Coordinating motor movement
- Calibrating the sensors
- Transferring data with data wires
- Adding logic with switch blocks
- Looping actions
- Troubleshooting problems with LEGO Mindstorms
- Broadcasting sounds and displaying images
- Updating LEGO Mindstorms
Skill Level Beginner
1. Getting Started
3. Explore a New Project
4. Connect with the EV3 Brick
5. Program Movement and Sensing
6. Adding Flow to a Program
7. Document Your Work
8. Troubleshoot Problems
9. Extra Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.