Sei sulla pagina 1di 5

Name: PANTALUNAN, CINDY C.

Section: EC21FA1

ACTIVITY 6: GRAPHING IN LABVIEW (ANSWERS)

Question: How does the VI work?


The VI works by first we set a loop count which is 200 will be multiplied by pie, then the loop
iteration will be divided by 100 where it will be our angle for the trigonometric function of sin, then the result
of sin will be shown in numeric indicator and waveform chart and graph.
Question: Why is that the iteration condition is set to 200×pi? What does it do in the program?
The For-loop will run 628 times. This is because we wired the 200*pi expression into the loop
counter. However, since the loop counter is a long integer, and the output of the multiply node is a double
precision number, the output will be type casted as a long integer. In effect the number 200*pi which is
approximately 628.31 will be rounded down to 628, and hence the For-loop will run 628 iterations.

Question: What is the purpose of Wait until ms function inside the For-loop structure?
The Wait (ms) function waits until the millisecond counter counts to an amount equal to the input
you specify. This function guarantees that the loop execution rate is at least the amount of the input you
specify. Hence, this function is also use to synchronize activities.
Question: What will happen if you put the Waveform Graph inside a For-loop structure and connect
it to the output terminal of the sin function? Why does that happen?
There will be a block diagram error if you put the Waveform graph and connect it to the output
terminal inside the for-loop structure because you have connected two terminals of different type.
Question: What happens to the Waveform Chart as you use the Strip chart, Scope chart and Sweep
chart as the update mode? Are these updates available for Waveform Graph? Why or why not?
When we use a strip chart, the waveform display is similar to a paper tape strip chart recorder,
while in the scope chart display is similar to an oscilloscope and when we use a sweep chart the plot is not
erased when the plot hits the right border instead a moving vertical line marks the beginning of new data
and movers across the display from left to right as it adds new data. These updates are not available in the
waveform graph because a waveform Graph accepts arrays of data in various forms, e.g. array, waveform,
or dynamic data. It then plots all the received points at once while a Waveform Chart remembers and
displays a certain number of points by storing them in a buffer. When the buffer gets full, the chart starts
overwriting the oldest points with new ones.
4. Explore the Property dialog box of the Charts and Graphs and customize your plots. SCREEN-
CAPTURE your graphs and charts and include it in your activity report.
Question: How do we visually customize our charts and graphs to make it presentable? Explain it in
a procedural manner.
To make it presentable go to the Properties Appearance/Display Format/Plot/Scale.
Question: Explain in a systematic manner how did you come up with the Front panel and Block
Diagram shown above. Do a mini-procedure on how you obtain the plots above?
It's almost the same as with the Act6_2_1 but now there's 2 functions, added the cosine
function, so we added also another function which is the Bundle Function wired to the Waveform Chart,
and the build Array Function wired to the Waveform graph, the main objective of these two function is
to produce the sin and cosine function into one chart and represent the white wave as the sin, and the
red wave as the cosine.
Question: What function did you use to superimpose two plots in a single chart or graph? Explain
this function.
The function I used is the Bundle function, it changes the value of individual elements in an existing
cluster without specifying new values for all elements.
V. ASSESSMENT TASKS

1. What are the differences between a Waveform Graph and a Waveform Chart?
The Waveform Graph displays single or multiple existing data all at once with evenly distributed
points. While, the Waveform Chart display single or multiple data that is acquired and update at a
constant rate.
2. How do you differentiate Strip, Scope and Sweep chart update mode of a Waveform Chart?
In the Strip chart update mode it entirely display how the graph is being made, it follows the wave
from start to end, in scope chart, after the wave crosses the screen of the chart, it starts again from the
left, in sweep chart, it sweeps the old wave made, and create a new wave.
3. State the importance of plotting data in LabVIEW.
Graphical display of data is an important aspect of programming in LABVIEW. A good
knowledge of ARRAYS and CLUSTERS is important for graphical operations. VIs with graph usually
collects the data in an array and then plots the data to the graph to obtain a waveform. TWO-
DIMENSIONAL X-Y displays are required in most situations. LabVIEW is the tool of choice due to its
unparalleled connectivity to instruments, powerful data acquisition capabilities, natural dataflow-based
graphical programming interface, scalability, and overall function completeness. One need that persists
regardless of the area of expertise is the fact that users must manipulate data and measurements, and
make decisions based on it.
4. Upon exploring the LabVIEW environment for Graphing, how do we do Surface and 3D plots?
Right Click on the Front PanelGraph Functions3D Graph. Then choose on the variety
of graphs available.

VI. CONCLUSION
In this activity, I learned how to graph my data and display my data. I also learned how to
distinguish the difference of waveform graph and waveform chart and I learned how to differentiate the
strip, scope and sweep chart update mode that is available in waveform chart. I also learn that data plotting
is important in labview because data visualization becomes important to modern statistical analysis. Visual
inspection via graphing is essential in analysing complex data sets. And lastly, I learned how to configure
charts and graphs for data presentation.

Potrebbero piacerti anche