Overview
This example VI Demonstrate the use of Number to Boolean Array function to convert U32 numeric number to its binary equivalent in array form.
Description
This VI can be used to create a U32 numeric number to its binary equivalent in array form. This VI comes in handy when generating arrays on a FPGA and wanting to use the binary form as a waveform on the host VI. This VI is made to be used as a SubVI.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.
Why in such complicated way? You can do the same without for loop, isn't?
Andrey.
Andrey,
Thank you for that alternate, and more straightforward, approach. The reason that this example was written in the form it was, was to give the programmer more flexibility when they want to fill the array with values besides 1 and 0. The user's end goal was to convert the U32 input to an array to be concatenated with other arrays to build a numeric waveform. They wanted flexibility for the 1 and 0 values. But thank you for your code, since for users who don't need that flexibility, they can use the moe straightforward approach.
Larry