
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is an assignment for computer science
Typology: Exams
1 / 24
This page cannot be seen from the preview
Don't miss anything!

















EE 179 Laboratory
Identify the parts of an existing VI.. Block diagram Front panel This is an example of the front panel after we input 60 seconds. In this exercise, we are introduced with virtual instruments (Vis) with components: the block diagram and the front panel. The last is used to represent the VI in the block diagrams of other, Free Control Indicator Numeric Constant String Constant Control Indicator
EE 179 Laboratory calling VIs. The front panel is built using controls and indicators. We are introduced to the basic parts of each component.
EE 179 Laboratory
Understand how dataflow determines the execution order in a VI.
EE 179 Laboratory left-to-right or top-to-bottom execution when no data dependency exists.
EE 179 Laboratory rate of 1,000 Hz retrieves 0.1 seconds worth of data. The graph indicator displays a sine wave and the Average Value indicator displays a number with a very sall value or close to zero.
Use the debugging tools built into LabVIEW. After running the program, multiple errors occur. Labview shows clear explanation of what and where is the error or which part. To fix the error, replace this component with greater than (>). This is the result of probing the wires.
EE 179 Laboratory With Continued debugging of the subVI. Block diagram of the Area and Validity of a Triangle VI After debugging and examining the wires. Results after testing the area of the triangle VI were acquired
EE 179 Laboratory
Use a While Loop and an iteration terminal and pass data through a tunnel.
Create a VI that continuously generates random numbers between 0 and 1000 until it generates a number that matches a number selected by the user. Determine how many random numbers the VI generated before generating the matching number. A new project and a new VI (Auto match) was created with the components: Number to match, current number, number of iterations. Default values and desired properties were established in each component. This block diagram was produced. Running the VI. These are the results. And applying an out of range value of the match number, the 3rd picture shows that LabVIEW coerces the out-of-range value to the nearest value in the data range specified in the previous steps.
EE 179 Laboratory This shows the highlighted process of the block diagram.
Understand when to use a While Loop and when to use a For Loop.
For the following scenarios, decide whether to use a While Loop or a For Loop. Scenario 1 Acquire pressure data in a loop that executes once per second for one minute.
EE 179 Laboratory With multiple input receivers, The graph shows less spikes and much faster input-output reactions. This serves a more reliable observation.
Plot multiple data sets on a single waveform chart and customize the chart view.
Modify the VI from Exercise 3-4 to plot both the current temperature and the running average on the same chart. In addition, allow the user to examine a portion of the plot while the data is being acquired. Applying a little modification with the previous block diagram (adding the Bundle which passes the current temperature and average temperature to the Temperature History chart), this is the resulting block diagram. Also, the front panel was modified, showing 2 plots (average and current temperature), adding the graph palette and scale legend of the temperatire history. This is the result after running the new VI.
EE 179 Laboratory The two plots are quite different as the current temperature shows a lot of spikes while the average shows the mean of the current temperature, hence its smoother.
Modify a VI to use a Case structure to make a software decision.
You created a VI where a user inputs a temperature, a maximum temperature, and a minimum temperature. A warning string generates depending on the relationship of the given inputs. However, a situation could occur that causes the VI to work incorrectly. For example, the user could enter a maximum temperature that is less than the minimum temperature. Modify the VI to generate a different string to alert the user to the error: Upper Limit < Lower Limit. Set the Warning? indicator to TRUE to indicate the error. Modifying a much previous block diagram (temperature warnings), a new block diagram was developed. With added case structures based on the manual instructions and components. A true and false case was created. This first one shows the Temperature Warnings VI Block Diagram—No Error, False Case.
EE 179 Laboratory This Front panel shows the behavior of the output after putting the values: Current temperature: 25 Max temperature: 20 Min temperature: 30
EE 179 Laboratory
EE 179 Laboratory
Create the icon and connector pane for a VI so that you can use the VI as a subVI.
You have created a VI that determines a warning string based on the inputs given. Create an icon and a connector pane so that you can use this VI as a subVI.
EE 179 Laboratory
Manipulate arrays using various LabVIEW functions.
You are given a VI and asked to enhance it for a variety of purposes. The front panel of this VI is built. You complete the block diagram to practice several different techniques to manipulate arrays.