Example Code

Use split number to rearrange a 64-bit array into 8-bit components

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 is an example to rearrange the input array into an output array containing the same data in smaller chunks.

 

Description
This code uses the "split number" function to rearrange the input array into an output array containing the same data in smaller chunks.  This is useful for something like SPI communication, where data must be written out in 8-bit chunks.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Specify the value of 64-bit Array。
  2. Run the VI.

 

 

Additional Information or References

Front Panel

ArrayFrontPanel.png

 

VI Snippet

1.png

 

 

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

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