You are on page 1of 1

1) Build a VI that continuously measures the temperature once per second and displays the temperature on a scope chart.

If the temperature goes above or below limits specified with front panel controls, the VI turns on a front panel LED. The chart plots the temperature and the upper and lower temperature limits. You should be able to set the limit from the following front panel. Save the VI as Temperature Limit.vi. 2) Build a VI that reverses the order of an array containing 100 random numbers. For example, array[0] becomes array[99], array[1] becomes array[98], and so on. Tip Use the Reverse 1D Array function located on the FunctionsArray palette to reverse the array order. Save the VI as Reverse Random Array.vi. 3) Build a VI that first accumulates an array of temperature values using the Thermometer VI, which you have already built. Set the array size with a control on the front panel. Initialize an array using the Initialize Array function of the same size where all the values are equal to 10. Add the two arrays, calculate the size of the final array, and extract the middle value from the final array. Display the Temperature Array, Initialized Array, Final Array, and Mid Value.Save the VI as Find Mid Value.vi. 4) Build a VI that simulates the roll of a die with possible values 1 6 and records the number of times that the die rolls each value. The input is the number of times to roll the die and the outputs include the number of times the die falls on each possible value. Use only one shift register. Save the VI as Die Roller.vi. 5) Build a VI that uses the Formula Node to calculate the following equations: y1 = x3 + x2 + 5 y2 = mx + b Use only one Formula Node for both equations and use a semicolon ( ;) after each equation in the node. Save the VI as Equations.vi. 6) Build a VI that functions like a calculator. On the front panel, use digital controls to input two numbers and a digital indicator to display the result of the operation (Add, Subtract, Divide, or Multiply) that the VI performs on the two numbers. Use a slide control to specify the operation to perform. Save the VI as Calculator.vi. 7) Build a VI that has two inputs, Threshold and Input Array, and one output, Output Array. Output Array contains values from Input Array that are greater than Threshold. Save the VI as Array Over Threshold.vi. Create another VI that generates an array of random numbers between 0 and 1 and uses the Array Over Threshold VI to output an array with the values greater than 0.5. Save the VI as Using Array Over Threshold.vi.

You might also like