1 / 16

Graphical Programming Languages Lecture 19: Supporting Material Dr Kathryn Merrick Thursday 21 st May, 2009

Graphical Programming Languages Lecture 19: Supporting Material Dr Kathryn Merrick Thursday 21 st May, 2009. Overview. Graphical programming languages: Variables, types, values, operators Flow of control Built-in functions Strengths and limitations.

art
Download Presentation

Graphical Programming Languages Lecture 19: Supporting Material Dr Kathryn Merrick Thursday 21 st May, 2009

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphical Programming Languages Lecture 19: Supporting Material Dr Kathryn Merrick Thursday 21st May, 2009

  2. Overview • Graphical programming languages: • Variables, types, values, operators • Flow of control • Built-in functions • Strengths and limitations

  3. Lego Mindstorms NXT: Programmable Robots Programmable Brick

  4. The NXT Programming Environment The programming window

  5. Built-in Functions ‘Move’ functions connected up like Lego bricks Input parameters set here

  6. Loops Instructions to be repeated will be dragged into here Loop connected up like a Lego brick Exit condition (can behave like a for loop or a while loop)

  7. Selection What to do will be dragged into here Selection connected up like a Lego brick Conditions set here

  8. A Complete Program

  9. Demo 1: Programming a Lego scorpion

  10. Variables Variable brick

  11. Maths Operators Maths operator brick

  12. Boolean Operators Boolean operator brick

  13. Complete Program

  14. Demo 2: Programming a Lego scorpion

  15. Summary • After today’s lecture you should be able to: • Identify the key programming tools we used in MATLAB in the NXT graphical language • Appreciate the strengths and weaknesses of graphical languages

More Related