Вы находитесь на странице: 1из 2

ENTC 250

Lab Assignments: 1
Due Date: Tuesday, Sept. 17

Objective: To get familiar with Labview environment, library, help menu, front panel, block
diagram and tools palette. In this Lab, you will learn how to build VIs and sub VIs
and how to edit and debug a broken VI.

Report Preparation: Turn in all your code on a diskette. For report follow the lab project
guideline in syllabus.

Assignment 1: ( Labview enviroment, Help Menu)

Open Frequency Response VI from Labview help: click Search Examples button then
Click Demonstration, Instrument I/O and then Frequency response. This VI simulates
sending a stimulus signal to a Unit Under Test and then reading back the response. The
resulting frequency response curve is displayed in the graph. Run the VI, using operating
tool, change the amplitude knob value. Click the run button again. Try to adjusting other
controls on the panel and running VI to see what changes occur. Select Window>> Show
Diagram or press <Ctrl-E> keys to display the block digram. Use the operating tools to
double-click on DMM icon to open the sub VI.
Select Help>> Show Context Help to display the context help window. Move the
positioning tool over the Logarithm Base and read the help. Click on more help. Move
the wiring tool over Logarithm Base to display terminals.
Select Help>> Contents and Index to open Labview Help. Practice with Index, Contents
and Search tab.

Assignment 2: (Editing and debugging)

Load the broken VI (Debug Exercise.vi (main & sub)) , debug and correct the errors.
Use debugging tools to step through the VI.

Assignment 3: (Building simple VIs)

1. Build a VI that generates a random number between 0.0 and 10.0 and then divides the
random number by a number specified on the front panel where result will be a
rounded quotient and remainder. If the input is 0, the VI should turn on a front panel
LED to indicate a divide by zero error.

2. Build a VI that compares two numbers and returns greater value and displays it on the
front panel and turns on an LED if the first number is greater than or equal to the
second number.
Assignment 4: (VIs and Sub VIs)

a. Create a VI that convert the Celsius temperature to Fahrenheit (F = C*9/5 + 32). Create
an icon and terminal layout and save the sub VI as Convert C to F.vi.

b. Build a new VI that generates a random number between 0 and 1. Scale it to number
between 0 and 40. We will assume that this number represents a temperature between 0
and 40 degrees Celsius.

c. Use the sub VI Convert C to F to Display both temperatures (Celsius and Fahrenheit)
using a numeric indicator and a thermometer indicator.

d. Test to see if the temperature in Fahrenheit is greater than a specified temperature (use a
control) and light a front panel LED if it is. Create an icon and terminal layout and save
the sub VI as Thermometer.vi. Save these file because you need them for next lab.

Вам также может понравиться