Engineering 103 –UMass Boston
CW 10
(In-Class-Work
10)
a)
Make
a VI that can plot any function between 0 and 4 (using N=101 points, for
example). Use LabVIEW For Loop, Eval Single-Variable Array (under G
Math/Parsers VI in version 5.0 or Mathematics/Formula/Advanced Formula Parsing
in versions 6.0 and higher), and Bundle (under Cluster) to tell the Waveform
Graph the initial value, increment for t (the function’s argument), and values
of the function. Use cos(t) as the input function to
be plotted. Click on the Light Bulb in the Diagram, and then click Run to see
how the For Loop and the program work. Print a copy to submit.
b)
Make
another VI by modifying the VI in a) such that it uses only 5 points.
Note the difference. Then use trial-error method to see what
is the smallest number of points that makes the graph look like your actual
function. Save the VI after doing Operate/Make Current Values as Default
with this smallest number of points, into a cw10_lastname library. Print a copy
to submit.
c)
Use
the table of 10 data points obtained from CW 9; make a VI that plots the array
for t against the array for v0. Label your axes. Use Array, Bundle, and XY
graph (if you use “Express XY Graph, then the bundle is not needed since it
comes included in the Graph). Save the VI after doing Operate/Save Current
Values as Default, into the same library as in part b). Print a copy to submit.
*Remember
that this is an individual work (turn it in, as instructed, with your name and
date). Home-works and class-works count 20% toward the course grade.
Class-works are done in class.