1. Home
  2. /
  3. Labview
  4. /
  5. Sum of Array

Sum of Array - Labview Typing CST Test

Loading…

Sum of Array — Labview Code

Calculates the sum of an array of numbers.

-- Initialize array
arr := [1, 2, 3, 4, 5]
sum := 0

FOR i FROM 0 TO LENGTH(arr)-1 DO
    sum := sum + arr[i]
END FOR

Display("Sum: " & sum)

Labview Language Guide

LabVIEW is a graphical programming environment developed by National Instruments for data acquisition, instrument control, automation, and embedded system design.

Primary Use Cases

  • ▸Data acquisition from sensors and instruments
  • ▸Test and measurement automation
  • ▸Industrial control systems
  • ▸Embedded system prototyping
  • ▸Signal processing and analysis

Notable Features

  • ▸Graphical programming with block diagrams
  • ▸Dataflow execution model
  • ▸Built-in support for DAQ, PXI, and embedded devices
  • ▸Extensive libraries for math, signal processing, and UI
  • ▸Integration with hardware and communication protocols

Origin & Creator

Created by Jeff Kodosky and National Instruments in 1986.

Industrial Note

LabVIEW dominates industries requiring test automation, hardware interfacing, and real-time data analysis, such as aerospace, automotive, and electronics labs.

More Labview Typing Exercises

LabVIEW Counter and Theme ToggleLabVIEW Fibonacci SequenceLabVIEW Factorial CalculatorLabVIEW Even/Odd CheckerLabVIEW Reverse StringLabVIEW Prime CheckerLabVIEW Multiplication TableLabVIEW Temperature ConverterLabVIEW Simple Alarm Simulation

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher