{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

372573a - Getting Started Manual LabVIEW LEGO MINDSTORMS...

Info icon This preview shows pages 1–4. 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.
Image of page 1

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

View Full Document Right 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 the Scaled Value output of the Read Sensor VI to the number input of the Display Control VI.
Image of page 2
© National Instruments Corporation 3 Getting Started with the LabVIEW NXT Module After you complete this step, the block diagram window should appear similar to the following figure.
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern