|
|
EE462G: Electronic
Circuits Laboratory
|
|
|
|
LabVIEW
Program:
1. Input the frequency and
amplitude values from the keyboard
2. Input the amplitude
value from the keyboard and the frequency values from a text file
3. Input the frequency
value from the keyboard and the amplitude values from a text file
|
Download LabVIEW
Source Codes for Scope and Function Generator
|
|
|
|
|
|
4. Basic control of the curve
tracer
5. Step generator of the curve
tracer
|
Download LabVIEW Source
Codes for Curve Tracer
|
|
|
|
Exercise:
LabVIEW programming
exercise I
LabVIEW programming
exercise II
|
|
|
|
Input the frequency and
amplitude values from the keyboard
Instruction:
1. Choose the wave type
2. Input frequency and amplitude values (e.g. 200 and 2)
3. Click 'Run' button to get the result.
4. When you use 'DC', you can input Offset value in 'Amplitude' box and you
don't need frequency values.
5. The LED is OFF when you are
collecting the data and it will turn on after you finish all the data
6. Click 'STOP' button to stop the program. If you want to restart the
program, click the '->" button on the left-up of the window.
|
|
|
|

|
|
|
|
Top of Page
|
|
|
|
Input the amplitude value
from the keyboard and the frequency values from a text file
Instruction:
1. Choose the wave type
2. Input the amplitude value with keyboard
3. Click 'Input Freq. from file...' button and choose the text file that
contains frequency values.
The format of the frequency file looks like:
200
800
10000 ...
4. Click 'Run' button to get the result.
5. Click 'Save to File...' button to save the output values to a LVM fille. The LVM file can be opened with any text editor
such as notepad.
6. The LED is OFF when you are
collecting the data and it will turn on after you finish all the data
7. Click 'PAUSE' button when you
want to stop the program when you are collecting the data
8. Click 'STOP' button to stop the program. If you want to restart the
program, click the '->" button on the left-up of the window.
|
|
|
|

|
|
|
|
Top of Page
|
|
|
|
Input the frequency value
from the keyboard and the amplitude values from a text file
Instruction:
1. Choose the wave type
2. Input the frequency value with keyboard
3. Click 'Input Ampl from file...' button and
choose the text file that contains frequency values.
The format of the amplitude file looks like:
1.2
2.0
3.5 ...
4. Click 'Run' button to get the result.
5. Click 'Save to File...' button to save the output values to a LVM fille. The LVM file can be opened with any text editor
such as notepad.
6. If you choose 'DC', input the start amplitude, the end amplitude and the
increment from keyboard. The minimum value for increment is 0.05
7. The LED is OFF when you are
collecting the data and it will turn on after you finish all the data
8. Click 'PAUSE' button when you
want to stop the program when you are collecting the data
9. Click 'STOP' button to stop the program. If you want to restart the
program, click the '->" button on the left-up of the window.
|
|
|
|

|
|
|
|
Top of Page
|
|
|
|
Basic control of the curve
tracer
|
|
|
|

|
|
|
|
Top of Page
|
|
|
|
|
|
|
|
Step
generator of the curve tracer
|
|
|
|
|
|
|
|

|
|
|
|
Top of Page
|
|
|
|
LabVIEW programming exercise I
|
|
|
|
The purpose of this LabVIEW
program is to input A and B values; subsequently, the program will calculate
the multiplication of both inputs, i.e.,C=AxB and display the value of C in both edit box and
gauge. When C>60, the LED will
automatically turn on, otherwise, it remains off.
The program will guide the students to:
1. Create a new file.
2. Add controls on Front Panel. The controls include numeric control,
numeric indicator, gauge, LED and
a stop button.
3. Program on Block Diagram. All the components will be wired up. In addition
to a while loop, the 'multiply' and 'greater than' functions will be
utilized.
4. Add text or comments on Front Panel.
|
|
|
|
Top of Page
|
|
|
|
|
|
|
|
LabVIEW programming exercise II
|
|
|
|
The purpose of this LabVIEW
exercise is for students to create a LabVIEW interface that controls the function
generator to obtain the desired signals. GPIB commands will be used in this
exercise.
The program will guide the students to:
1. Add controls on Front Panel. The controls include string control, OK and
STOP button.
2. Program on Block Diagram. Use 'write' command which is from Advantech
library. A case structure and a while loop will be utilized.
3. Generate Sine,Triangular and Rectangular
signals. In addition, the interface will include features which allow
variation in both frequency and amplitude.
|
|
|
|
Top of Page
|
|
|
|
|
|
|
|
|