In this chapter, we will learn about how to use LabVIEW Virtual Instruments software and its basic features and functions. In LabVIEW, you build a user interface, or front panel, with controls and indicators. Controls are knobs, push buttons, dials, and other input mechanisms.
1. Open the LabVIEW 2017
2. Click Create Project and Select VI
3. From Template, select Generate and Display. This template VI
generates and displays a signal.
generates and displays a signal.
4. Front Panel and Block Diagram will opened
5. Click Run on the Front Panel. A Sine wave will appear, then click Stop button.
6. To Adding a Control to the Front Panel,
On front panel, click View and then click Controls Palette.
7. Click Express, choose Numeric Controls and then choose Knob. Drag the knob at the front panel left to the waveform graph.
8. On the block diagram, students need to right click Simulate Signal and click the Properties
9. Choose the Signal Type click the Saw Tooth hit the button OK
10. The Amplitude input will appears as shown below.
11. Move the cursor over the arrow on the Knob, the cursor becomes a wire spool. Connect the wire from the Knob to the Amplitude input. Save the work.
12. To Run a VI, on the Front panel, choose Run button and then move the cursor at the knob. Use the Operating tool to change the value of a control as shown below.
13. To Modify a signal, first choose the block diagram and delete the wire that connected the amplitude and the waveform graph.
14. Click the Function pallete and choose the Express. Then, click the Arithmetic & Comparison and drag to the block diagram between Simulate Signal Express VI and the Waveform Graph terminal.
15. Change X1 input label to Sawtooth. Observe the text box at the top of the Configure Formula dialog box, the text changes to match the label have entered. Enter *10 in the text box and click OK
16. On the Sawtooth output at the simulate signal, drag the wire and connect to the Sawtooth input at the Formula Express VI.
17. To Display Two Signals on a Graph, In the block diagram, move the cursor over the arrow on the Sawtooth output of the Simulate Signal Express VI. Later, use the Wiring tool to wire the Sawtooth output to the Waveform Graph Terminal. SAVE.
18. Return to the front panel and then run the VI and turn the knob control. The graph plots the original sawtooth wave and the scaled sawtooth wave with 10 times the amplitude, as students specified in the Formula Express VI. The maximum value on the y-axis automatically scales as
the Knob turned. Observe the wave result.
19. To customize the Knob control, right click the front panel knob and select Properties from the shortcut menu to display the Knob Properties dialog box. Click the Appearance tab to display the Appearance page. Later, in the Label section on the Appearance page, delete the label Knob
and enter Amplitude in the text box.
20. Click the Scale tab. In the Scale Style section, place a checkmark in the Show color ramp checkbox. Then,the knob in the front panel window updates to reflect these changes.
Next, click the OK button to save the current configuration and close the Knob Properties dialog box. Later, Save the VI.
21. To Customizing a Waveform Graph, in the front panel window, move the cursor over the top of the plot legend on the waveform graph. Next, though the graph has two plots, the plot legend displays only one plot. During a double-headed arrow appears, click and drag the border of the plot legend to add one item to the legend. Students need to release the mouse button, the second plot name appears.
22. Next, right-click the waveform graph and select Properties from the shortcut menu to display the Graph Properties dialog box. On the Plots page, select Sawtooth from the top pull-down menu. In the Colors section, click the Line color box to display the color picker. Select a new line color.
23. Select Sawtooth (Formula Result) from the top pull-down menu. Next, place a checkmark in the Do not use waveform names for plot names checkbox. This action lets students to edit the labels on the graph.
24. In the Name text box, delete the current label and change the name of this plot to Scaled Sawtooth.
Students need to click the OK button to save the current configuration and close the Graph Properties dialog box
25. Reopen the Graph Properties dialog box and experiment with other properties of the graph. For instance, on the Scales page, try disabling automatic scaling and changing the minimum and maximum value of the y-axis.
Lastly, click the Cancel button to avoid applying any changes you made while experimenting. If want to keep the changes made, click the OK button.
THE RESULT
DONE CHAPTER 1.



























No comments:
Post a Comment