Uploaded by Oscar Diaz

LabVIEW 1

advertisement
Lab exercise no.1 | Intro to LabVIEW
Oscar Diaz
Mechatronical Engineering
CETYS Universidad
Mexicali, B.C.
oscaraledd@gmail.com
This paper’s purpose is to illustrate the development of a
couple of different LabVIEW exercises for us to get familiarized
to the interface and function. In this paper there are resolutions of
the problems we were assigned in class.
III. DEVELOPMENT
Exercise number 1:
This was a simple exercise to
develop, as we only connected
inputs to arithmetic functions and
display the output of different
operations done to A and B.
Keywords—LabVIEW
I. INTRODUCTION
In the laboratory exercise number 1, this assignment
functions as an introduction to LabVIEW, following will be
the use of simple functions like addition, subtraction, division
and multiplication, functions that are taught in primary level.
Next temperature conversions from Celsius and Fahrenheit to
the other, next a square root with a condition and finally the
simulation of a sinusoidal signal with different variables.
Figure 1.
II. THEORETICAL FRAMEWORK
There were several functions that were used in the
LabVIEW program for this practice, following here they are
including a description:
Variable: Input set by the user that is then interpreted by
the computer. These can be called different names to help
guide the human interacting with the program.
Arithmetic
operations:
Subtraction,
addition,
multiplication, and division, these take the input provided by
the user and apply the appropriate operation.
Output variable: The printed result by the computer of an
input or combination of inputs that are transformed via an
operation.
Square root: Returns the square root of a number.
More than: Comparison between 2 numbers, if the first is
bigger than the second then a 1 is the output, if not then a 0.
IF: 3 input function, one that determines the output which
is binary and the other two that become the output. If input 1
is TRUE then first option is selected, if FALSE then option
two is selected.
Simulate signal: Function that as the name states,
simulates a signal which the user can set the parameters to, in
this specific case we determined to interact with Amplitude,
frequency, and displacement. As well as Noise Standard
Deviation, samples per second, cut-off frequency
Signal noise: Noise that is applied to the signal to deform
it, in this specific case we used Gaussian white noise.
Signal filter: Function utilized to “clean up” and round
around the edges of the signal.
Exercise number 2:
This was very
similar to the
first problem,
we only used
arithmetic
functions to
transform
numbers.
Figure 2.
Exercise number 3:
This turned out to
be a bit trickier
than the last
exercises, here
we used the sqrt
function but also
an if to include
the condition in
which the user
provided a
negative number,
here the output then becomes -99999.
Figure 3.
XXX-X-XXXX-XXXX-X/XX/$XX.00 ©20XX IEEE
Exercise number 4
This exercise turned out to be the hardest of all, we
modified a simulated signal and altered the frequency,
offset, phase and amplitude using different variations of
inputs. We also took the gaussian white noise and graphed
it, then this “dirty” signal was cleaned up using a filter
which was displayed as the final output.
VI. REFERENCES
[1]
[2]
Figure 4.
IV. RESEARCH QUESTIONS
What is LabVIEW? Laboratory Virtual Instrument
Engineering Workbench (LabVIEW)[1]: 3 is a systemdesign platform and development environment for a visual
programming language developed by National
Instruments.
What is a VI or Virtual Instrument? A virtual instrument
consists of an industry-standard computer or workstation
equipped with powerful application software, costeffective hardware such as plug-in boards, and driver
software, which together perform the functions of
traditional instruments.
What are the advantages of using LabVIEW in the
Industry? Intuitive graphical programming, Wide range of
supported hardware and software, Large community and
resources, Integration with other software.
LabVIEW
Industry
Application
Areas:
Military/aerospace, Automotive, Semiconductor, Telecom,
Energy/power, Consumer electronics, Computers and
electronics, Medical Device.
V. CONCLUSION
This Laboratory practice turned out to be very informative
and educative. We utilized things that we have seen before
in other classes but applied to LabVIEW to learn to use the
interface and do problems inside it.
[3]
Jeffrey., Travis (2006). LabVIEW for everyone : graphical
programming made easy and fun. Kring, Jim. (3rd ed.). Upper
Saddle River, NJ: Prentice Hall. ISBN 0131856723. OCLC
67361308.
S. Sivaranjani a et al. (2020) Visualization of virtual environment
through labview platform, Materials Today: Proceedings. Available
at:
https://www.sciencedirect.com/science/article/abs/pii/S2214785320
381827#:~:text=Laboratory%20Virtual%20Instrument%20Enginee
ring%20Workbench,be%20confused%20with%20G%2Dcode.
(Accessed: 27 February 2024).
“LabVIEW Basics,” S5 Solutions | LabVIEW, ATE, Test
Engineering
Services,
https://www.s5solutions.com/labviewgraphicalprogramming.html#:~:text=Advantages%20of%20LabVIEW%3A,
development%20time%20and%20improve%20productivity.
(accessed Feb. 27, 2024).
Download