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
- This is where you build your Programs.
- All blocks and programming elements goes here.
- Blocks are called VIs
- VIs come in a variety of shapes and sizes
- VIs are connected to each other by wires
- 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
Execution Order Can be a Problem
- 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
Debugging Highlights Data Flow
You can also use the Error Data Type
- 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
- Work on the back panel first
- Don’t cross wires – Keep the diagram clean
- If in doubt: right-click
- 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
This video goes over the basics for LabVIEW just in case you’re new to this