Professional Documents
Culture Documents
To Create A VI That Will Show The Basic Mathematical Functions-Addition, Subtraction, Division, and Multiplication
To Create A VI That Will Show The Basic Mathematical Functions-Addition, Subtraction, Division, and Multiplication
Front Panel:
Block Diagram:
Observations and Recommendations: Based from this exercise using lab view, Ive observed that evaluating the four basic mathematical operations (addition, subtraction, multiplication and division) are very much easier compared to other computer programs like c++, matlab and many more. Comparing the series of codes encoded For C++: #include<stdio.h> int main(void) { float a; float b; cout<<Input First number; cin>>a; cout<<Input Second number; cin>>b; cout<<a+b<<a+b<<endl; cout<<a-b<<a-b<<endl; cout<<a*b<<a*b<<endl; cout<<a/b<<a/b<<endl; return 0; } For MATLAB: >> a=29; >> b=29; >> x=a+b x =58 >> y=a-b y =0 >> z=a*b z =841 >> l=a/b l= 1
In labview, these four basic mathematical operations where done in just simple drag and click function. Unlike the two programs mentioned (C++ and MATLAB), the commands and codes that are needed to encode were really intricate. The codes are case sensitive and even for one single error, the whole program will be ruin. In using labview, we could save time and we could avoid the occurrence of multiple errors in our programs. Its more convenient to use compared to matlab and C++ with regards to the involvement of the four mathematical operations.
Submitted By: Sanchez, Angelin Revee C. PC # 29 Submitted To: Engr. Rex Jason H. Agustin