To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example takes an array of 1's and 0's and converts it into a single binary string.
Description
This VI takes an array of 1's and 0's and compares each element against a 1 to create an array of booleans. A Boolean Array to Number function is used to convert the array into a single number, which can be converted into a binary string using the Format Into String function.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**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.
There's no need for the FOR loop. The equals will take the array and scaler inputs and give an array out.