Example Code

Parse Number into 1D Array

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 VI takes an integer and parses each individual digit in order to create a 1D array of the integer's digits.


Description
The Quotient and Remainder function, in conjunction with a shift register, is used to separate the number's digits into individual elements.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Set the Y input
  2. Click run and view the results

 

Additional Information or References
VI Block Diagram

 Block Diagram.png

 

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

 

 

dK

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