FTC Labview Mindstorms NXT Programming

LabVIEW for LEGO MINDSTORMS was designed specifically for use with the LEGO Education robotics platform, providing a sophisticated teaching tool that helps students program the LEGO MINDSTORMS NXT brick.                                                   


Exclusive features just for LEGO robotics:

  • Incorporate lesson plan content and share student results in one place.
  • Visually configure and control your NXT using a joystick or keyboard.
  • Graphically configure and test motor and sensor connections.
  • Easily log and analyze the data you collect from your NXT.

 


 

What is LabVIEW?

  • Laboratory Virtual Instrumental Engineering Workbench
  • LabVIEW is a graphical language
  • It works just like block diagrams
  • LabVIEW consists of two environments
  • Backpanel/Block Diagram
  • Frontpanel

 


 

Back Panel

  • This is where you build your Programs.
  • All blocks and programming elements goes here.

loc_eps_sim_ex1


Block Explanation

  • Blocks are called VIs
  • VIs come in a variety of shapes and sizes
  • VIs are connected to each other by wires

Untitled

  • VIs are setup so data moves from left to right
  • Each data type has its own wire color
  • Constants, Controls, Variables and Indicators have the same color scheme                                                                                                                   fsdf

Execution Order Can be a Problem

Examples


Debugging

  • If you’re unsure how to use a VI use ctrl-H for context help
  • LabVIEW contains several example VIs
  • Keep an eye on what data types you use

Examples

 

Debugging Highlights Data Flow

Examples

You can also use the Error Data Type

Examples


Advanced Topics

  • Loops, case structures, comments, variables, sub-programs and just about every other Comp-Sci term can be implemented in LabVIEW
  • There is text programming in LabVIEW

Hints

  • Work on the back panel first
  • Don’t cross wires – Keep the diagram clean
  • If in doubt: right-click

Shortcuts

  • Ctrl-B  -Remove Broken Wires
  • Ctrl-R  -Run VI
  • Ctrl-E  -Change Environment
  • Ctrl-T  -Tiled View
  • Ctrl-H  -Show Icon Help
  • Ctrl-(drag)  -Copy to Location
  • Shift-(Right Click)  -Call Cursor Palette

 


Sources

NI’s website: Official Website
LabviewWiki: Wiki
Labview for everyone: PDF


Videos

This video goes over the basics for LabVIEW just in case you’re new to this

LabVIEW for LEGO MINDSTORMS for FTC