Example Code

Resistor Calculator for 4, 5, and 6 Band Resistors

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

Download All

Overview
This VI will calculate the value of your resistor based on the colors of the bands on your resistor.

Description:
In this example, each tab will show the meaning of each band of your resistor. When you are finished, you will find the nominal value of the resistor, the tolerance value on your resistor, the change in resistance caused by temperature and the maximum and minimum values that your resistance can be.


Instructions:
To implement this example:

  1. Run VI
  2. Select your resistor style from the tabs above.
  3. Select the specific colors that are on your resistor.
  4. If you are using a 6 Band resistor, enter the operating temperature of the resistor to determine the additional resistance caused by the change in temperature.
  5. Click "Calculate" to determine the resulting resistor values.

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

2017-11-02_13-35-21.jpg2017-11-02_13-36-44.jpg

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

Frank,
National Instruments
Software Group Manager

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

Comments
sccompu
Member
Member
on

Hello, where can I download the vi?

Frank-L
NI Employee (retired)
on

Sorry about that, it should be attached now.

Frank,
National Instruments
Software Group Manager
Nezarovsky
Member
Member
on

Hi,

Have you tried to find the resistor's value based on a real-time image aqcisition using a webcam? if not do you have any idea on how to succeed ? 

Thank you for the VI great work.