0% found this document useful (0 votes)
9 views

LabVIEW assignment questions

Assig

Uploaded by

bokoha9490
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

LabVIEW assignment questions

Assig

Uploaded by

bokoha9490
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Write a program to
a. convert temperature from Celsius to Fahrenheit (Use thermometers to display).
b. Find out area of cube and circle
c. Find whether the given number is odd or even, Use LED to indicate them
d. blink a LED with delay cycle of 1 sec

2. Build a VI to generate:
a. At least 15 random numbers (range is from 15 to 80). The values must be of integer data type.
b. Store the generated values in an array.
c. Use a different array to store the values that are divisible by 3.

3. Design a simulation to emulate the gradual filling of a tank, ranging from 0 to 100 units, over the
course of 10 iterations.
Implement visual representations, including an analog gauge and a numeric display, to showcase the
tank's level throughout the process.
Furthermore, integrate a monitoring system to signal a low-level alarm (boolean) should the tank's
level fall below 20 units,
and similarly, activate a high-level alarm if the level surpasses 90 units.

4. Traffic Light Simulation


Design a traffic light simulation program to mimic the standard traffic light sequence. The simulation
should adhere to the following sequence:
Initially, the red light is on for a duration of 2 sec.
After 2 sec, the red light turns off and the amber light turns on for 2 sec.
Subsequently, the amber light turns off and the green light turns on for 2 sec.
This sequence repeats indefinitely.

5. Write a code (using shift reg or feedback node)


a. to find out factorials of a given number
b. To blink a indicator at a cycle interval of 2 secs

6. Make use of case structure and loops for following


a.check a given group of numbers individually whether it is even or odd number (u can use an array or
random number generator )
b. Make use of array to store the even and odd numbers (individual array for even and odd)

7.

use seven Square LED Boolean indicators, which have been appropriately resized and labeled A
through 6, to form a seven-segment display on the front panel of a VI.
Then code the block diagram so that, when the Run button is pressed, this front-panel display counts
from 0 to 9 with each digit illuminated for 1.0 second.
8.

Create a 3 way lane traffic light logic with a delay cycle of 2 sec:
(consider green1 yellow1 red1 for Lane-1, green2 yellow2 red2 for lane-2 and same for lane-3)

a. If Green1 ON Red2 and red3 ON


b. If green2 ON red1 and red3 ON
c. If green3 ON red1 and red2 ON

yellow1,2 and 3 should be On respectively for each lane while switching between green and red

9. Generate 15 random numbers and find out minimum, maximum and average values of that

10. Build a VI that generates a 1D array and then multiplies pairs of elements together, starting
with elements 0 and 1, and returns the resulting array. For example, the input array with values
{1, 23, 10, 5, 7, 11} results in the output array {23, 50, 77}

11. Build a VI that generates a 2D array of three rows by 10 columns that contains random numbers.
After generating the array, index each row, and plot each row on its own graph. The front panel
should contain three graphs.

12. Build a VI that simulates the roll of a die with possible values 1 to 6
a. Record the number of times that the die rolls each value
b. Check the percentage of getting each value with respect to number of iterations

13. create a VI to generate random strings of letters until they spell "OHIO."
a. randomly generates four letters every second and displays them as a four-letter string.
b. 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.
c. Modify this VI by adding a numeric indicator that is continually updated to show how many four-
letter strings the program has generated, also show how much iterations it took to spell ''OHIO''.
14.

implement a VI which generates two random numbers between 1 and 10 for a set amount of time
defined by the user.
Denote the first random number as Random Number A and the second as Random Number B. Points
are attributed to a random number whenever its value is greater than the other.
Write a logic that keeps track of the points for each random number generator and displays the
winner, with the help of Boolean indicators.
Also, include an indicator in the event of a tie. Note that the winner should only be displayed at the
end of the competition (once all iterations have finished).

You might also like