Example Code

Radar Sweep Using Picture Functions

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

Download All

Overview

This code allows the user to simulate an Indicator Radar Sweeping using Picture functions.

 

Description

This VI uses the Picture Functions API to draw a sweep radar simulation. Picture Area Size is using as reference for get the center of the radius and X and Y Offset then the circle, the center and the swept line is drawing. A Formula Node calcules the sine and cosine for an angle that is changing each iteration. The user is able to change some Radar Indicator Properties as: Direction, Line Style, Color and Width.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run VI
  2. Adjust Input Radar Properties

Additional Information or References

2149.png 

**This document has been updated to meet the current required format for the NI Code Exchange.** 

Justin Parker
National Instruments
Product Support Engineer

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