Activity 3-Elementary Mathematical Functions in LabVIEW
Activity 3-Elementary Mathematical Functions in LabVIEW
Page 21
3. Click on the Run Continuously button and adjust the control knob as follows:
a. 1.25
c. 1.57
b. 0.56
d. 3.13
Question: Explain how the VI works?
Page 22
SIN
COS
TAN
CSC
SEC
COT
5. Verify using your scientific calculator in DEGREE mode the values recorded on the table above.
Question: Compare the results of the values tabulated above with the values you have computed
using your scientific calculator. Is there any difference in the value? If there is a difference, why do
you think so?
6. Modify the VI such that the value on your program and scientific calculator matches without omitting
the values of control knob. Save the modified VI as Act3_1_2.VI. SCREEN-CAPTURE the Front Panel
and Block Diagram for this procedure and include it in your activity report.
ACTIVITY 3.2: EXPONENTIAL FUNCTIONS
1. Clear the Front Panel and the Block Diagram from the
previous activity done. Create a Front Panel VI as shown
below: Save VI as Act3_2_1.VI
2. On the Block Diagram
Window, drag and drop
Exponential functions. RightClick anywhere in an empty
Space, go to Mathematics
ElementaryExponential
And drag and drop the ff:
a. Exponential
b. Exponential Arg (-1)
c. Power of 10
d. Power of 2
e. Logarithm Base-10
f. Natural Logarithm
Page 23
Power of 10
Power of 2
Log Base
10
Natural
Logarithm
0.00
0.50
1.00
1.50
2.00
2.50
3.00
3.50
4.00
4.50
5.00
5.50
6.00
6.50
7.00
7.50
8.00
8.50
9.00
9.50
10.00
Question: Explain each functions used in the calculation of the tables given above.
Question: What are the other functions under Exponential and explain each function?
Page 24
2. On the Block Diagram, drag and drop the six hyperbolic functions and connect to its numeric indicator
labeled Output 1 to Output 6 respectively. The hyperbolic functions in sequence should be sinh, cosh,
tanh, sech, csch, coth respectively. Save your VI as Act3_3_1.VI
3. Consider the table below. Record the values for the given values below:
Input values
sinh
cosh
tanh
csch
0.00
0.50
1.00
1.50
2.00
2.50
3.00
3.50
4.00
4.50
5.00
5.50
6.00
6.50
7.00
sech
tanh
Page 25
Question: What are the other functions under Hyperbolic Functions and explain each function?
Create a VI that will allow to compute the value of d for each of the given s and L from 0 to 1000. Use
a dedicated control knob and customize your VI. Save your VI as MacPro3_1.VI
2. The Taylor Series expansion for the hyperbolic sine function is given as:
Where n is the number of terms to be added to the series. Create a VI that would compute the sum of the
first ten terms of the Taylor Series expansion for the hyperbolic sine and hyperbolic cosine of an input x,
calling this VI as HypTaylor.VI
Page 26
2. What is the importance of having Mathematical functions in creating a program using LabVIEW?
3. When using a trigonometric function such that you want to compute for the six trigonometric functions of
a given angle, how does LabVIEW interpret your input value?
4. Can we use the Mathematical functions of LabVIEW in the operation of an external device from the
platform itself? How and why?
VI. CONCLUSION
VII. RUBRICS FOR LABORATORY PERFORMANCE
Page 27