Example Code

LabVIEW - Resistance Calculator

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

Code and Documents

Attachment

Overview

This is a LabVIEW application which can determine the value of a resistor using a cheat sheet.

Description

Ever used a cheat sheet to determine the value of a resistor?

Here is a LabVIEW application which does the 'hard work' for you! The following example can be used for 4 and 5-code resistors.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Select 4 or 5 band configuration.
  2. Click colours to match the resistor.
  3. View resistance value.

 

Additional Information or References  

Front Panel

ResistorCalculator.png

 

VI Snippet

1.png

 

There are a couple of examples on the community pages which provide this functionality, however this implementation uses Picture Rings as the control method and is built to allow distribution as an executable.

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**


Regards,

Peter D

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