Example Code

Semaphore Flag Teaching Tool using LabVIEW

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 VI translates alphanumeric texts into Flag Semaphore codes.

 

Description

The code translates a user-supplied ASCII string one character at a time into an index for a picture ring indicator containing the various semaphore flag symbols.  The images for the picture ring were taken from Wikipedia.

 

Requirements

  • LabVIEW Base Development System 2012 or compatible

 

Steps to implement or Execute Code

  1. Open VI "Semaphore Flags 2012 NIVerified.vi".
  2. Type some alphanumeric text into "Text to Translate" string control.
  3. Run VI.
  4. Confirm each symbol will display for one second on the front panel.

 

Additional Information or References
VI Front Panel

Front Panel.png

 

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

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments

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