Вы находитесь на странице: 1из 1

LABVIEW

1.a. Shift Registers: Create a VI which changes state of a LED every sec. LED is Green when OFF and
Red when ON.
b. Case Structure, Select Function and Formula Node: Create a VI to check the sign of the number. If
sign is positive, it should calculate and display the square root of the number. Otherwise it should
display a message and give a value of -99999.00 as output. Solve the problem using: (a) Case Structure,
(b) Select Function and (c) Formula Node. Display message need not be put up for (b) and (c). To display
message use one button dialog from Time & Dialog palette.
Q2. a. Shift Registers: Create a VI which changes state of a LED every sec. LED is Green when OFF and
Red when ON.
b. Array and Sequence Structures: Develop a VI to generate 5000 random numbers and display them in
a continuous fashion on a waveform graph. This has to be done in two ways: (a) Add an element to the
array at the end of each iteration using Built array. (b) Initialize an array of sufficient length and then
substitute elements. Develop both and then using Sequence Structures find the time taken in each case.
Is the time uniform in both cases?
Q3. Develop a VI to check if a number is Prime. Use flat sequence, while loop and two case structures.
Display the output on a string indicator

Вам также может понравиться