Sie sind auf Seite 1von 4

Machine Problem

Feedback and Control Systems

Simple Oscilloscope

I. INTENDED LEARNING OUTCOMES

1. Build a simple Oscilloscope that shows the amplitude voltage and waveform.
2. Create sub-VIs and use them in the development of complex VI.
3. Use the While-Loop structure in the development of continuously running VIs.

II. BACKGROUND INFORMATION

Oscilloscope is a device in measuring the input voltage and its waveform. It is use in application
involving sine waves and testing of voltage peak to peak output. Oscilloscopes are used to observe the
change of an electrical signal over time, such that voltage and time describe a shape which is continuously
graphed against a calibrated scale.

III. LEARNING ACTIVITIES

Machine problem 1 - Build sub VI.

1. Open LabVIEW by double clicking the LabVIEW icon in the desktop. Clink on Blank VI to start a new
document.
2. Two new windows should appear: the Block Diagram (BD) window and the Front Panel (FP) window,

as shown below.

3. Right click on Front panel, then find the numeric control and numeric indicator. Do this by clicking
Numeric>Numeric Control and Numeric>Numeric Indicator. Set the name of numeric control to Input
while the numeric indicator to Ouput.Then go back to the Block Diagram and put the multiplication
operation. Do this by clicking Numeric>Multiplication. The program will look like this.
4. Then edit the name of the subVI icon as peak to peak voltage. Do this by double click the VI icon. And
then set the pattern of the subVI. Do this by right clicking the connector. After that save the subVI as peak
VI. The program will look like this.

5. Next open another Blank VI. Then choose the waveform graph. Right click anywhere in the program
then choose Graph>Waveform Graph. Next put a knob and horizontal fill slide, Numeric>Knob and
Numeric>Horizontal fill slide, name the knob as Peak voltage and Horizontal fill slide as Frequency. Also
put a stop button, find it by clicking Boolean>Stop Button. The program will look like this.
6. Go to Block Diagram, right click anywhere in the flatform and then find the Simulate Signal, find it by
clicking Express>Input>Simulate Signal. Connect the frequency to the frequency. Then add
multiplication, subVI named as peak VI. Connect the Peak Voltage to peak VI then connect the Sine to
the first input of multpilcation and the other to the output of the subVI. Connect the output of the
multiplication to the Waveform Graph. Add the While Loop, find it by Structures>While Loop. Connect
the Stop button to the red button. The program will look like this.

7. Save the VI and name it as macpro1. Run the program then adjust the frequency and Input Voltage.
The program will look like this.

Das könnte Ihnen auch gefallen