Example Code

Create A Circle Where Each Quadrant Has Its Own Radius

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Coding that exemplifies how to create a circle with different radius size in its quadrants.

 

Description

This simple example demonstrates a method of drawing a circle on an XY graph where each quadrant contains its own radius. The example iterates through a sine and cosine function to create an array of X and Y values that are passed to the XY graph which creates a circle. However, through the iterations, each quadrant gets multiplied by a unique gain which is the radius of that portion of the circle.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Run the VI
2. Change the gain for each quadrant
3. Stop the VI

 

Additional Information or References

Snippet.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Christian_L
Active Participant
Active Participant
on

Looks interesting. Any particular application for which you are using this code? I'm wondering where this might come up.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Burt_S
NI Employee (retired)
on

Great question.  I was working with a customer who was acquiring RMS values on four seperate channels, and he wanted to map the RMS value of each channel to a radius of one quadrant of a circle.  I honestly was never able to determine what the real use case for this was, but the following code helped get him going.