Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

by using LabView 2009 Next you'll write a program that converts three-band color codes to resistor values. 1. Create a new VI whose front panel

by using LabView 2009 image text in transcribed
Next you'll write a program that converts three-band color codes to resistor values. 1. Create a new VI whose front panel has a numeric indicator labeled Resistor Value. Also copy and paste the text ring from your program named Lab4TextRing.vi. (You could also recreate this text ring from scratch, but it's faster to copy and paste it.) Change its label to Color Band 1. 2. Paste two more copies of the text ring, and label these Color Band 2 and Color Band 3. Wire the block diagram so that when the user runs the program with three colors entered into the text rings, the numeric indicator displays the correct resistance, in ohms. For example, if the user enters blue-gray-red for the three colors, the numeric indicator should display 6800. Hint #1: I can think of at least two ways to do this using what you know about LabVIEW. One way is to leave the text rings as they are and use a few math functions on the block diagram to calculate the total value based on the three color values. To do it this way, you'll need the 10^x function on the Functions > Mathematics > Elementary > Exponential palette. The other way, which requires fewer math functions, is to make the text rings produce different values. To do this, right-click a text ring and select Edit Items.... Then uncheck the Sequential values checkbox, and type in your own numerical value for each color. You may find that you need to change a text ring's representation from U16 to a numeric data type that can hold bigger values. Hint #2: If you find this difficult, start by concentrating on the first two color bands, instead of trying to do all three at once. . 3. In Lab 2 you learned how to configure a numeric indicator to display its number using engineering prefixes, such as k for kilo- Do this with your Resistor Value indicator. Now for example, if the user enters blue-gray-red, the numeric indicator should display 6.8k. 4. Save this VI as Lab4ColorsToNumbers.vi, and show me your working program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

Students also viewed these Databases questions