You are on page 1of 3

Technological Institute of Philippines

938 Aurora Blvd., Cubao, Quezon City

Basic LabVIEW Programming


Activity No. 1

NAVARRO, Louie I.
1311330

Engr. Dennis Jefferson A. Amora


Instructor

Date Perfomed: November 14, 2014


Date Submitted: November 21, 2014

I.

Introduction
Within this report, we will try to analyze the VI done last Nov 14. The VI is supposed to
compute for the roots of any quadratic equation by inputting the variable A,B,C where Ax2
+ Bx + C=0.

II.

Procedure

Figure 1. Block Diagram of the VI

Figure 1 shows the how the VI is suppose compute for the roots of the quadratic equation. It
starts by defining the variables A B and C as inputs. Other steps done are listed below:.
1. Square B
2. Subtract 4AC and convert to CDB or CSG (this part was necessary so that LabVIEW would
compute for imaginary roots as well.)
3. Find the square root of the answer in step 2.
4. Add the result from step 3 to -B and divide by 2A. Connect the wire to X1 for first root.
5. Subtract the result in step 3 from -B and divide by 2A. Connect the wire to X2 for the second
root.
After accomplishing the steps above, the VI will now compute for the roots using the quadratic
formula:
X1 =
III.

Results

-B B 2 +4AC
2A

X2=

-B B 2 +4AC
2A

Figure 2. Front Panel of the VI

Figure 2 shows how the program looks like to the user. In the left column are the inputs
that accepts both real and imaginary numbers. On the right column is the output or the roots. It can also
display both real and imaginary numbers.
Some more instructions are placed beside the inputs and outputs boxes to aid the users who
have difficulties in understanding the UI.
IV, Conclusion
I therefore conclude that critical thinking is important in LabVIEW. The VI was created by
connecting procedures to procedures, starting with the inputs and finishing with the outputs. I realized
that any simple mistake in the procedures would lead to error for the whole program.
Since it is my first time to create a VI, I had difficulties in knowing where to find the tools that I
needed. Sometimes Im not even familiar with the name of the tool or menu that Im going to use.
As a student who experienced programming through pure coding, I find LabVIEW to be much
easier since I only had to deal with graphics rather than text which makes it less confusing.

You might also like