Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

by using LabView Next, let's make LabVIEW generate random strings of letters until they spell OHIO. 1. This first step requires one case structure and

by using LabView image text in transcribed
Next, let's make LabVIEW generate random strings of letters until they spell "OHIO." 1. This first step requires one case structure and no loops. Create a new VI whose front panel has a dial labeled Input Number and a string indicator labeled Output String. Configure the dial so that it can only be set to the integers 0, 1, and 2. Wire the block diagram so that if the user sets the dial to 0, the letter O is displayed in the string indicator. If the user sets the dial to 1, the letter "I" is displayed in the string indicator. If the user sets the dial to 2, the letter H is displayed in the string indicator. 2. Next, modify this VI's front panel by deleting the dial. Rewire the block diagram so that the program randomly generates an O," "1, or H at the rate of one letter per second until the user presses a STOP button. 3. Modify this VI by duplicating your random generator and case structure so that now the program generates two letters every second. Concatenate these two letters and display them as a two-letter string. For instance, some of the two-letter strings that can appear are HO," "OI," and "HI. As above, the user should be able to press a STOP button to end the program. 4. Extending the same strategy, modify this VI so that it randomly generates four letters every second and displays them as a four-letter string. 5. Modify this VI so that the program stops either when the user presses the STOP button or when the word "OHIO" appears in the string indicator. Also, speed up the loop so that it executes ten times per second instead of once per second. 6. Modify this VI by adding a numeric indicator that is continually updated to show how many four-letter strings the program has generated. Save this VI as Lab7CaseOhio.vi, and show me your working program. Next, let's make LabVIEW generate random strings of letters until they spell "OHIO." 1. This first step requires one case structure and no loops. Create a new VI whose front panel has a dial labeled Input Number and a string indicator labeled Output String. Configure the dial so that it can only be set to the integers 0, 1, and 2. Wire the block diagram so that if the user sets the dial to 0, the letter O is displayed in the string indicator. If the user sets the dial to 1, the letter "I" is displayed in the string indicator. If the user sets the dial to 2, the letter H is displayed in the string indicator. 2. Next, modify this VI's front panel by deleting the dial. Rewire the block diagram so that the program randomly generates an O," "1, or H at the rate of one letter per second until the user presses a STOP button. 3. Modify this VI by duplicating your random generator and case structure so that now the program generates two letters every second. Concatenate these two letters and display them as a two-letter string. For instance, some of the two-letter strings that can appear are HO," "OI," and "HI. As above, the user should be able to press a STOP button to end the program. 4. Extending the same strategy, modify this VI so that it randomly generates four letters every second and displays them as a four-letter string. 5. Modify this VI so that the program stops either when the user presses the STOP button or when the word "OHIO" appears in the string indicator. Also, speed up the loop so that it executes ten times per second instead of once per second. 6. Modify this VI by adding a numeric indicator that is continually updated to show how many four-letter strings the program has generated. Save this VI as Lab7CaseOhio.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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago

Question

5. Tell how job experiences can be used for skill development.

Answered: 1 week ago

Question

4. Explain the characteristics of successful mentoring programs.

Answered: 1 week ago