372573a - Getting Started Manual LabVIEW LEGO MINDSTORMS NXT Module The LabVIEW LEGO MINDSTORMS NXT Module enables you to perform the following

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Getting Started Manual LabVIEW LEGO ® MINDSTORMS ® NXT Module The LabVIEW LEGO ® MINDSTORMS ® NXT Module enables you to perform the following tasks: Develop LabVIEW VIs that run on a host computer and communicate with an NXT brick. These programs also can run directly on the NXT brick. Create and configure LabVIEW controls to represent TETRIX motors and servos connected to the NXT brick. You then can wire these LabVIEW controls to the NXT VIs to specify the motors and servos you want to control. This document contains exercises you can use to learn how to develop VIs that run on a host computer or on an NXT brick. These exercises require a basic understanding of the LabVIEW development environment. Refer to the Getting Started with LabVIEW document, accessible by navigating to the labview\manuals directory and opening LV_Getting_Started.pdf , for an introduction to LabVIEW.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Getting Started with the LabVIEW NXT Module 2 ni.com Building a VI that Communicates with the NXT Brick In this exercise, you will build a VI that runs on the host computer and communicates with the NXT brick. This VI measures the brightness of an LED light sensor and displays the value on the screen of the NXT brick. Building the VI Complete the following steps to build a VI that communicates with the NXT brick. 1. In the Getting Started window, click the Blank VI link to create a new VI. 2. Select Window»Show Block Diagram to display the block diagram window. 3. If the Functions palette does not appear, select View»Functions Palette to display the Functions palette. 4. Select NXT Robotics»NXT I/O from the Functions palette. The NXT I/O palette contains a library of VIs you can use to communicate with an NXT brick. 5. Add the Read Sensor VI, shown at left, to the block diagram window. Tip Select Help»Show Context Help to display the Context Help window. Hover over an object on the palette or block diagram window to view information about that object in the Context Help window. 6. Select Read Light»LED On from the polymorphic VI selector on the Read Sensor VI. This option specifies that this VI turns the LED light on and reads the light sensor. 7. Right-click the Port input of the Read Sensor VI and select Create»Constant from the shortcut menu. Port 3 is the default port. 8. Add the Display Control VI to the block diagram window to the right of the Read Sensor VI. 9. Select Write»Integer from the polymorphic VI selector on the Display Control VI. This option specifies that the NXT brick displays an integer on the screen. You can use this VI to display the value of the light sensor. 10. Wire the NXT output of the Read Sensor VI to the NXT input of the Display Control VI. 11. To display the scaled value of the light sensor on the NXT brick, wire
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/10/2010 for the course ECE 1882 taught by Professor Staff during the Fall '08 term at Georgia Institute of Technology.

Page1 / 8

372573a - Getting Started Manual LabVIEW LEGO MINDSTORMS NXT Module The LabVIEW LEGO MINDSTORMS NXT Module enables you to perform the following

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online