How to Make a Circle in LabVIEW

Updated July 20, 2017

The graphical user interface that LabVIEW provides for the development of software applications allows users to develop applications faster. LabVIEW provides a set of functions that can be used to draw various shapes. These shapes are drawn as pictures on the front panel window of a LabVIEW program. A built in function block called "Draw Circle by Radius.VI" can be used to draw a circle in LabVIEW.

Double-click on the LabVIEW shortcut on your desktop to launch the program. Click on "New VI" to launch a new LabVIEW program with two windows: the diagram window to develop the graphical code and the front panel window to develop the user interface. Save the program as "DrawCircle.VI."

Click on "View," "Functions Palette" on the "Menu" of the diagram window to open the functions palette. Drag and drop the "Draw Circle by Radius.VI" from the functions palette into the diagram window. This function block has an output called "New Picture" and two inputs called "Radius" and "Pixel Center."

Right-click on the "New Picture" output and click on "Create Indicator." A picture frame will automatically appear on the front panel window. Right click on each of the inputs and click on "Create Indicator" to create user input controls on the front panel window for entering the value of the radius and the location of the centre of the circle.

Enter the value "20" in the input control called "Radius." The "Pixel Center" input has two sections: horizontal position and vertical position. Enter the value "20" in both sections.

Click on the "Run" button on the "Menu" bar of the front panel window to execute the program. A circle of radius 20 will be drawn in the picture frame. Change the value of the vertical and horizontal position to change the position of the circle in the picture frame.

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Aalhad Deshmukh started writing technical articles in 2009 for eHow. He has more than five years of experience in research and development in software and electronics engineering using tools like LabVIEW and C++. Deshmukh holds a Doctor of Philosophy in electrical engineering from the University of South Carolina.