From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Display all quadrants of a Compass Plot

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

The example demonstrates how to center a 2D Compass Plot.

 

Description

By default, a LabVIEW compass plot only displays those quadrants of the polar coordinate system that are needed to display the vectors passed to the function. There is currently no available setting to display all four quadrants by default.

Therefore the example adds four vectors with appropriate length that reside on the X and Y axis in positive and negative direction. With these extra vectors all four quadrants are needed to display the compass plot completely.

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Open the attached file
  2. Select if you want to center the Compass Plot
  3. Specify the vector you want to plot
  4. Run the VI

 

Additional Information or References

Center 2D compass Plot - Front Panel.png

 

Center 2D compass Plot - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

Caleb Harris

National Instruments | Mechanical Engineer | http://www.ni.com/support

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

Comments
Ddrizzle
Member
Member
on

Has the compass plot been updated to display all four quadrants?