ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Labview and Arduino

Updated on February 10, 2018

Basic Elements Needed

Fig. 2: Block Diagram View
Fig. 2: Block Diagram View
Fig 3: Front Panel Display
Fig 3: Front Panel Display

What is LabVIEW?

LabVIEW is a visual programming software developed by National Instruments. LabVIEW is an acronym for Laboratory Virtual Instrumentation Engineering Workbench. It's used in testing, automation, instrument control, monitoring, and data acquisition. Programming is done by connecting icons together to form a visual flow chart of processes. There is no code or syntax to memorize or acronyms to learn. Programming is like drawing a flowchart.

LabVIEW is growing in popularity. Recently the SpaceX commercial Space Exploration Technologies Corporation completed a cargo mission to the International Space Station using the largest network of LabVIEW sensors and controls in one operation. The large walls of monitors shown in the mission control room were all LabVIEW based front panels.

You can find LabVIEW being used in science experiments and industrial controls everywhere. Whenever I've visited a plant manufacturing something or a University science lab, the video screen that monitors and controls the process is usually running LabVIEW.

LabVIEW Software Elements

Front Panel on Left,  Block Diagram on Right
Front Panel on Left, Block Diagram on Right

Programming LabVIEW

LabVIEW is completely graphical in it's programming and visualization of the data and controls. Years ago racks of instruments with mechanical switches, LED indicators, knobs, buttons and vu-meters were needed to control and monitor a plant operation or a science experiment. Today all those controls and indicators can be viewed controlled on a single computer monitor or touch screen interface. The controls and the software logic can be changed with just a simple click of a mouse or keyboard. If you want to add a switch, no holes need to be drilled or wires soldered in. Add the switch to the front panel screen of LabVIEW and wire the switch into the block diagram of the program.

LabVIEW is easier to learn than other programming languages. The program you create is called a VI (virtual instrument). Within this VI is two screens. The Front Panel is the GUI (Graphical User Interface) where the human interacts and monitors the program while it's running. The Front Panel contains the voltage readings, the measurements, etc. Elements that need to be measured and communicated to the person running the experiment.

The Block Diagram contains the programming working behind the Front Panel. Just like wires, switches and circuits would work behind an instrument panel. The Block Diagram is not a "hard-wired" device with solder and electrical cables. The Block Diagram is icons wired visually together to create a flow chart of the program.

Icon's represent the functions of what is being controlled and wires contain the data that connects the icons together. If you want an operation that has one switch controlling an indicator light. You pick the light and switch from the icon palette and place them on the front panel as seen in Fig. 3. On the Block Diagram (see Fig. 2) you wire the switch and light together to complete the circuit.

National Instruments offers training classes and certifications on programming using LabVIEW. There is also a wealth of information online where you can learn every aspect of LabVIEW programming.

What is the Arduino?

A graphical programming language like LabVIEW is meant to work with the outside world and environment through an interface device. National Instruments and many other vendors offer a very wide variety of data acquisition, controls and measurement devices. One of the easiest to work with and most economical is the Arduino microcontroller board.

The Arduino microcontroller board is available from your local electronics store or online for a very reasonable price. The Arduino has an open source software (free software), with an easy to use prototyping interface that connects to the USB port of your computer. It has several inputs and outputs that can be programmed to accept or produce analog and digital signals. By using the Arduino with LabVIEW, you get the easy graphical programming of LabVIEW and you get the simple easy to use inputs and outputs of the Arduino.

Arduino Circuit

Microcontroller Input/Output device
Microcontroller Input/Output device

Combine LabVIEW and the Arduino.

To get these two talking together you must first must obtain a copy of LabVIEW. National Instruments offers a low cost Student Version and a 30-day evaluation copy.

Once you have LabVIEW loaded you can download the VI Package Manager from NI. This VI Package Manager contains the LabVIEW Interface for the Arduino.

You will need a sketch loaded on the Arduino so it will act as a slave to the LabVIEW VI. Adding sketches to the Arduino is described at the site.

After you get the Arduino and LabVIEW working, you can try the built-in examples given in the LabVIEW drop down palette. Selecting the Analog Read Pin example will automatically program LabVIEW to read one analog pin you choose to be read for voltage or frequency.

Try a few examples and after a little trial and error, you will be running real world tests of your own. It's amazing how many gadgets you will be creating with LabVIEW and the Arduino microcontroller board.

Examples for Arduino
Examples for Arduino

Do you use:

See results

This article is written by RichFatCat. All rights reserved. It's hosted on HubPages, an online community where everyday experts like you and me can publish high-quality articles like this one and earn a share of the ad revenue they generate.

Sign up for HubPages here.:


    0 of 8192 characters used
    Post Comment

    No comments yet.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)