1. Create a new VI whose front panel has a numeric control labeled Number and a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create a new VI whose front panel has a numeric control labeled Number and a string indicator labeled Color Band. Using a case structure, wire the block diagram so that the string indicator displays the color corresponding to the single digit entered by the user in the numeric control. If the user enters any number other than the integers from 0 through 9, the string indicator should display "Not a valid digit." 2. Modify the program's front panel by changing the numeric control's label to Resistor Value and changing the string indicator's label to Color Band 1. Then add two more string indicators labeled Color Band 2 and Color Band 3. Wire the block diagram so that when the user runs the program with a valid resistor value (up to 10,000,000) entered into the numeric control, the string indicators displays the correct colors. For example, if the user enters 680 for the resistor value, the string indicators should display blue-grey-brown. (Hint #1: You'll probably want to use three separate case structures. Or you could create a subVI that contains a case structure, and use it three times.) (Hint #2: You'll probably want to convert the resistor value from a number to a string, using the Number To Decimal String function. Then you can manipulate the decimal string with the String Subset function, which lets you pull out one or more individual characters from a string. For instance, if the user enters 2700, when you convert this to a decimal string you'll have the string "2700," and then you can use the String Subset function to pull off the first character ("2"), and the second character ("7").) 3. Add a STOP button to the front panel and modify your block diagram so that the program continues to run until the user presses the STOP button. Save this VI as Lab7NumbersToColors.vi, and show me your working program. 1. Create a new VI whose front panel has a numeric control labeled Number and a string indicator labeled Color Band. Using a case structure, wire the block diagram so that the string indicator displays the color corresponding to the single digit entered by the user in the numeric control. If the user enters any number other than the integers from 0 through 9, the string indicator should display "Not a valid digit." 2. Modify the program's front panel by changing the numeric control's label to Resistor Value and changing the string indicator's label to Color Band 1. Then add two more string indicators labeled Color Band 2 and Color Band 3. Wire the block diagram so that when the user runs the program with a valid resistor value (up to 10,000,000) entered into the numeric control, the string indicators displays the correct colors. For example, if the user enters 680 for the resistor value, the string indicators should display blue-grey-brown. (Hint #1: You'll probably want to use three separate case structures. Or you could create a subVI that contains a case structure, and use it three times.) (Hint #2: You'll probably want to convert the resistor value from a number to a string, using the Number To Decimal String function. Then you can manipulate the decimal string with the String Subset function, which lets you pull out one or more individual characters from a string. For instance, if the user enters 2700, when you convert this to a decimal string you'll have the string "2700," and then you can use the String Subset function to pull off the first character ("2"), and the second character ("7").) 3. Add a STOP button to the front panel and modify your block diagram so that the program continues to run until the user presses the STOP button. Save this VI as Lab7NumbersToColors.vi, and show me your working program.
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Use the following information taken from the multi-step income statement of On That Note Music Shop to answer the questions below Account Name or Subtotal Cost of Good Sold General and...
-
Glossary Define charity care. Does it qualify for revenue recognition?
-
Calculate the rotational partition function of H 2 O at 298K from its rotational constants 27.878 cm 1 , 14.509 cm 1 , and 9.287 cm 1 and use your result to calculate the rotational contribution to...
-
Indicate whether the following items, a through j, are (1) typical characteristics of open-book management or (2) not typical characteristics of open-book management. a. Considered a large size...
-
With the growing popularity of casual surf print clothing, two recent MBA graduates decided to broaden this casual surf concept to encompass a surf lifestyle for the home. With limited capital, they...
-
Find a datathat have at least 50 observations and no more than 300. Data must have at least two numeric variables that you think might have an association with each other. One of these will be your...
-
FNS40815 Certificate IV in Finance and Mortgage Broking FNSINC402 Develop and maintain in-depth knowledge of products and services used by an organisation or sector Question: Using comparison...
-
Discuss some of the key environmental challenges facing the world and the differences between pollution in wealthy and poor nations.
-
Explain the applicability of independent internal verification to payroll transactions.
-
Almost every patient in hospital is sent for laboratory investigation where sample collection is the foremost process. Based on laboratory test results, decisions about admissions, discharge and...
-
Enumerate the functions related to the production cycle.
-
Identify the departments reporting to the vice-president of production?
-
All of the following are criticisms of the traditional budgeting process except that it a. makes across-the-board cuts when early budget iterations show that planned expenses are too high. b....
-
Use the graphs of f and g to graph h(x) = (f + g) (x). To print an enlarged copy of the graph, go to MathGraphs.com. 1. 2. y 24 8. 2. -2 -2 4 6
-
Microsoft considers six principles important to the ethical development and deployment of AI: faimess, reliability and safety, privacy and security, inclusiveness, transparency, and accountability....
-
Go to PWC.com, Deloitte.com, EY.com, or KPGM.com and search for "blockchain." Choose a topic and write about how the firm is using blockchain to help its clients.
-
KPMG described four anchors of trusted analytics in a report titled "Building Trust in Analytics: Breaking the Cycle of Mistrust in D\&A," accessed at https://home. \(\mathrm{kpmg} /\)...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App