Header Ads

LabVIEW Project

LabVIEW Project

 

Let create a VI on LabVIEW software, that solve the quadratic equation which takes value of A, B, and C from user and then compute both quadratic solutions (one solution using the plus(+) symbol, the other using the minus(-) symbol in the following equation).

    As we knew from quadratic formula that the solution of above equation can be in the form

 x = -b±b²-4ac/2a

    Now we will solve this equation in LabVIEW and we get the desired results.

First of all we open the LabVIEW. The LabVIEW icon will be present either on desktop or in the start menu under the folder of National Instrument. The following figure will help us in that:

LabVIEW Project


After clicking the LabVIEW icon the following dialog box appear

LabVIEW Project


The following window will appear which give you a number of options  to start the LabVIEW.

LabVIEW Project


As we start from the scratch so click on the Blank VI. After this the front panel and block diagram will be visible for you easily switch between front panel and block diagram by using shortcut key Ctrl+E.

First of all we will work on the front panel. Now click on the Numeric Control in the control palettes under the express tab. After clicking on the numeric control a number of number control option will appear.

LabVIEW Project


There is no hard and fast rule to select which one but its best that you choose the numeric control that best suits our problem as well as our front panel. For this problem we will choose the numeric control (the first one). Place the numeric control on the front panel so that it can appear like in the following diagram.

LabVIEW Project


Now you have to place the indicators to see the results of this VI. To place the indicator just go back to express tab and then click on the numeric indicator and then place the numeric indicator (the first one).

LabVIEW Project


And make the front panel like in the following diagram.

LabVIEW Project

That's all. We are done with front panel. To go the block diagram press the shortcut key Ctrl+E or go to the menu bar and then windows and click on the Show the Block Diagram. The block diagram will appear will like this.

LabVIEW Project

 

If we see on the block diagram you see that it contains all the controls and indicators which were placed previously. The main part of any VI is the block diagram. To make this VI workable let us start to place functions which will solve our objective.

The function palettes are automatically on the block diagram and if it is not don't worry. To make the function palettes available just right click anywhere on the block diagram and pin the function palettes. The other method is that go to the menu bar and then view and click on the function palettes.

As the function palette is available click on the mathematics tab and then click on the numeric.

LabVIEW ProjectLabVIEW Project

LabVIEW Project
Now place the add, subtract, divide, multiplication, square root square function and numeric constant on the block diagram just like that.
LabVIEW Project


After this make the connection according to the previous equation.

The final block diagram will look like this.

LabVIEW Project



No comments:

Powered by Blogger.