LabView
HW 7 (Lab 9)
Assigned On: Wednesday October 21st 2015, at 12 PM (noon).
Due Date and Time: Wednesday October 28 th 2015, at 12 PM (noon).
Submission: To be uploaded (all the solution files must be put inside a folder, the folder should then be compressed or zipped, and that zipped folder is uploaded) onto the blackboard assignment webpage by the student, under the correct lab number folder in the Assignments webpage. Remember to upload it on the HW (not Lab Work) upload page link!
Naming your file and folder: Please save solutions to each problem in a separate file (one m- file for each problem).
The name of the file should be as given below: YourLastName_YourFirstNameInitial_HW_ProblemNumber.CorrectExtension
Example: Mysore_D_HW_Problem1.vi
CorrectExtension is .doc for word documents, .pdf for pdf documentsm .m for script-file or m- files, and .vi for LabVIEW VI files. They are usually generated by default.
Put all the files (solutions of all the problems assigned in that lab) inside one folder. The folder name should be as given below:
YourLastName_YourFirstNameInitial_HW_LabLabNumber
Example: Mysore_D_HW_Lab9
Then zip that folder and upload the folder onto the Assignments webpage of your blackboard under the appropriate lab number.
Total Points: 20 (regular) + 5 (extra credit)
Please read the instructions and the problem statement for each of the assignment carefully. When in doubt, ask any one of the GTAs or the instructor, only after you have read the problem statement thoroughly.
ME 208, Fall 2015, Mechanical Engineering, University of Kansas Page 1 of 3
1. Problem 1 Create a VI that determines and displays the letter grade of a student based on the user input score. Determine the grade based on the following criteria:
Score Grade >=90 A
>=80 and <90 B >=70 and <80 C >= 60 and <70 D
< 60 F The letter grade must be displayed in full sentence (so for example, “The student got a B grade”).
Hint: You will have one numeric control on your front panel to receive the input from your user. You will have one string indicator on your front panel to display the letter grade in full sentence. You will probably use a case structure with a numeric input for the case selector. There will be five cases with different range of numbers and one of them will be default case.
2. Problem 2 Create a VI with a numeric user input. This user input number will be compared with a number generated by the random number generator. Check if the user input number is greater than, or less than, or equal to the random number. Then display the result (greater or less than or equal to) as a string output. Also have a numeric indicator to display the random number generated.
Note: This is similar to problem 2 of your lab work, however, there are three cases now! First case is greater than, second is equal to, and third one is less than (or you can switch up the order, doesn’t matter, but there are still three cases). You may solve this using a nested case structure, i.e. one case structure inside another case structure. Or any other way you can think of.
3. Extra Credit Problem Create a VI with string user input. To that string, you will concatenate another string that says “ is an engineer by day and secret superhero by night!”. So this string which you will concatenate or add on to the user specified string will be a string constant on your Block Diagram. To concatenate two strings, look under Block Diagram>>Functions>>String>>Concatenate String. So if the user input is “Dhaval”, then your output will display “Dhaval is an engineer by day and secret superhero by night!”.
ME 208, Fall 2015, Mechanical Engineering, University of Kansas Page 2 of 3
ME 208, Fall 2015, Mechanical Engineering, University of Kansas Page 3 of 3
- 1. Problem 1
- 2. Problem 2
- 3. Extra Credit Problem