8
Labview Introduction Writing and Saving your first program

Labview Introduction Writing and Saving your first program

Embed Size (px)

Citation preview

Page 1: Labview Introduction Writing and Saving your first program

Labview Introduction

Writing and Saving your first program

Page 2: Labview Introduction Writing and Saving your first program

Getting startedWhen you open Labview, you get the “Getting Started” window:

Click “Create program”

Page 3: Labview Introduction Writing and Saving your first program

Robot Project, Blank Project

You then create a new “blank” robot project

Page 4: Labview Introduction Writing and Saving your first program

Location for the ProjectIn the top field, give the project a nameIn the second field, click on the folder to put the project in your “Robotics -> Programs” folder. The project will have the extension “.lvrbt”

Page 5: Labview Introduction Writing and Saving your first program

The Project CenterThe project center is where we create new individual programs,

with the extension “.vi”Click “New VI” and “VI for NXT target” to create a new program.

Page 6: Labview Introduction Writing and Saving your first program

Where we write the program

After naming the new .vi, you get two windows:• The Front Panel, the gridded screen in back• The Block Diagram. This is where we write our programs• If the Block Diagram ever disappears, click Command-E to

bring it back.

Page 7: Labview Introduction Writing and Saving your first program

Adding Blocks to a programWe build program one block at a time, by right clicking on the Block Diagram and choosing the appropriate command. Both the “Motor” and “Wait” blocks are under “NXT I/O”

Page 8: Labview Introduction Writing and Saving your first program

Saving and Closing

To Save a program, click Command – S, or choose Save under the File menu.When you close the project you will get an error message about “PassKeyOrCancel.vi” and “ConnectToBrick.vi” Do not worry about them, just choose “Don’t Save – All” for them.