Example Code

Array of Doubles to an Array of Strings

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

This example will convert an array of doubles to an array of strings.

 

Description

This VI will convert an array of doubles to an array of strings. You can easily modify this code to allow other conversions.

 

Requirements

  • LabVIEW 2012 (or compatible) 

 

Steps to Implement or Execute Code

  1. Initalize an array of doubles.
  2. Use the Number to Fractional String VI to convert the array to a string.
  3. Add the appropriate indicators.
  4. Run the VI directly and the indicators will show the converted result.

 

Additional Information or References 

Front Panel

2.PNG

 

VI Snippet

1.png

 

Example written by Vimal Fernandez

 

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

Applications Engineer
National Instruments

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