Upload
kristian-hoover
View
219
Download
3
Embed Size (px)
Citation preview
Labview Introduction
Writing and Saving your first program
Getting startedWhen you open Labview, you get the “Getting Started” window:
Click “Create program”
Robot Project, Blank Project
You then create a new “blank” robot project
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”
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.
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.
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”
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.