Example Code

Tartaglia's triangle and powers of two

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

    Operating System

  • IOS
  • Windows

Code and Documents

Attachment

Description

 Tartaglia's triangle and powers of two

 

Simple application to generate the Tartaglia's triangle by means the "Binomial Coefficient VI", and calculate the powers of two as the sum of the elements of each row.

Generated values are converted in string and stored in a table. A numeric control is used to set the maximum number of rows.

 

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

Contributors