Use LabVIEW to create the following problem: Converters Updated In this problem,
ID: 2081747 • Letter: U
Question
Use LabVIEW to create the following problem:
Converters Updated In this problem, you will create a VI that uses a Waveform Chart to plot temperature values collected over an hour. Since these values are collected in degree Celsius (degree C), you are to add a Switch to allow the user to decide whether they would like the resulting graph to represent values in Celsius or in Fahrenheit. The following steps are to help you in accomplishing the task: 1) Using a For Loop with a count terminal [N] value set to 60 and the random number function Random Number (0-1)), create a VI that will generate 60 random values between 0 and 150 Name this VI "RandomNumbersGenerator". 2) The values generated in 1) represent temperatures obtained over a period of time in degree Celsius (degree C) .Convert the VI created in 1) into a sub-VI that will serve as input to another For Loop (inside a new VI), Inside that For Loop, you are to have a Switch to allow the user to leave the values as such or convert them into Fahrenheit (degree F). If the user chooses to have the values in Fahrenheit, you are to convert them. Then, using a Select you are to plot the appropriate temperature values. Add a Thermometer indicator to see how these values vary.Explanation / Answer
1.)
With loop control statements, you can repeatedly execute a block of code. There are two types of loops:
for statements loop a specific number of times, and keep track of each iteration with an incrementing index variable.
For example, preallocate a 10-element vector, and calculate five values:
while statements loop as long as a condition remains true.
For example, find the first integer n for which factorial(n) is a 100-digit number:
Each loop requires the end keyword.
It is a good idea to indent the loops for readability, especially when they are nested (that is, when one loop contains another loop):
You can programmatically exit a loop using a break statement, or skip to the next iteration of a loop using a continue statement. For example, count the number of lines in the help for the magic function (that is, all comment lines until a blank line):
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.