Вы находитесь на странице: 1из 2

262

Graphing with LabVIEW

PROBLEMS
1. Enter the following values into a 1D array and graph them using a Waveform

Graph control. Adjust the plot characteristics to show the plot with solid
squares, connected by a dashed line.
Y
2
4
3
5
4
6
2. Plot the following values and use the plot to estimate the curves maximum value.
Y
1.0
2.2
3.4
4.1
4.0
2.0
1.1
3. Enter the following values into two 1D arrays. Bundle the (X, Y) values and

send the bundle to an XY Graph control. Show the data points with markers
connected with a dashed line.
X

1.2
2.1
3.5
4.2
4.6
5.6
7.2

3.5
4.0
4.3
4.2
4.1
3.7
2.7

4. Enter the following values into two 1D arrays. Bundle the (X, Y) values and

send the bundle to an XY Graph control. Estimate the X value where the
curve crosses Y = 0.
X
1.2
2.3
3.5
4.2
5.8
7.6
8.2

Y
9.1
12.4
10.5
6.7
9.3
39.5
52.5

Problems

5. Enter the following values into three 1D arrays and create an XY graph with

two curves: (X, Y1) and (X, Y2). Use the Plot Legend and set the curve properties
so that the curves are easily distinguished when printed on a black and white
printer.
X

Y1

Y2

1.2
2.3
3.5
4.2
5.8
7.6
8.2

9.1

7.1

12.4
10.5
6.7
9.3
39.5
52.5

9.6
8.5
6.1
4.4
24.1
32.5

6. Enter the following values into four 1D arrays and create an XY graph with

two curves: (X1, Y1) and (X2, Y2). Set the curve properties so that the curves
are easily distinguished when presented in a classroom using a color projection
system. Estimate the point of intersection of the two curves.
X1

Y1

X2

Y2

1
2
3
4
7
8
9

12

1.5

9.0
7.0
5.4
1.9
1.3
1.0

3
5
7
9

4.6
7.0
8.4
9.0

7. The data required to generate a plot of Bessel function J0(x) are available in

files BesselX.txt and BesselY.txt at the texts website.


www.chbe.montana.edu/LabVIEW
Download the files, then create an XY graph of the Bessel function.
What is the value of J0(x) when x = 22?
Hint: You can check your result using LabVIEWs function: Bessel Function Jv.vi.
8. A first-order response is a common model for a variety of processes in engineering (e.g., mixing in a tank, warming a thermocouple, charging a capacitor).
A first-order response has a time constant, , that is indicative of the speed of
the response.
After a time equal to 1, 63.2% of the total change in Y will have taken
place.
After a time equal to 2, 86.4% of the total change in Y will have taken
place.
After a time equal to 3, 95.0% of the total change in Y will have taken
place.
Data for a first-order response are available in files FirstOrderTime.txt and
FirstOrderY.txt at the texts website. Download the files, and then create an
XY graph of the response. What is the value of the time constant, , for the
process?

263

Вам также может понравиться