1. Open Blank VI. Front Panel & Block Diagram will appear.
- If the Function palette not visible then right click any blank space on the block diagram to display Function Palette.
2. To Add an Express VI that Stimulates a Signal, click help and choose the show context help which are from the block diagram and front panel.
3. On the Function Palette right click the express and choose input palette. Then move the cursor over one of the input palette. When students move the cursor over a VI, the Context Help window displays information about that VI.
- Information in the Context Help window will help to find the Express VI that can simulate a sine wave signal. Select Express VI and click the Configure Stimulate Signal ( dialog box appear). Move the cursor over the various option in the “ Configure Stimulate Signal”
4. Next, generate a sine wave with frequency = 10.7 and amplitude =2. The signal in the Result Preview window changes to reflect the configured sine wave. Click the OK button to save the current configuration and close the Configure Simulate Signal dialog box.
5. Read the information that appears in the context help window. SAVE.
6. For searching the help and modifying a signal, move the cursor over the stimulate signal express VI on the block diagram to display the context help and then click the detailed help link to display the stimulate signal topic in the Labview help as shown below.
7. Next, click add to the block diagram and then move the cursor to block diagram then click add sample compression express VI to the block diagram.
8. Use View then click Quick drop to find easily the item and choose configure the sample compression expres VI to reduce the signal by a factor 25 using the mean of these values and then click ok and choose close the configure sample compression dialog box.
9. Next, use the Wiring tool to wire the Sine output of the Simulate Signal Express VI to the Signals input of the Sample Compression Express VI.
10. To Customizing a user interface from the block diagram, right click the Mean output of sample and then Create and choose the Numeric Indicator and click mean indicator appear shown at left.
11. Then, right-click the wire that connects the Sine output of the Simulate Signal Express VI to the Signals input of the Sample Compression Express VI and select Create and then choose the Graph Indicator from the shortcut menu.
12. Later, use the Wiring tool to wire the Mean output of the Sample Compression Express VI to the Sine graph indicator. This will create a merge signals function. Rearrange the object and click the display the front panel.
13. Next, to configuring a Vi to run cointinously until the user stops it. Add the while loop and click the execution control and move the cursor to the upper left corner of the block disgram and drag the cursor diagnostically to enclose all the express VIs , then release the while loop, the stop button will appear.
14. Next, go to the front panel and run the VI.
15. Then, the VI now runs until students click the STOP button. Later, a While Loop executes the VIsand functions inside the loop until the user clicks the STOP button.
15. Click the STOP button and save the VI.
16. Next step is to show how to use the error list window.
- Display front panel and click mean indicator that shown at left and press delete key.
- Next, display block diagram and a wire appears as a dashed black line with a red X in the middle, shown at left. The dashed black line is a broken wire.
- The Run button, shown at left, appears broken to indicate the VI cannot run.
17. Select view and choose the error list then click close button to close the error list window and delete the loose end, click the run button and no longer appears broken.
18. To control the speed of execution, first, on the block diagram, search for the Time Delay Express VI, shown at left, on the Functions palette and place it inside the While Loop. Use the Time Delay Express VI to control the execution rate of the VI.
19. Enter 0.25 at time delay text box and click ok then choose close the configuration time delay dialog box.
21. Add the Switch, wire connected to the input of the Sample Compressor
22. Display the front panel and run the VI next click enable switch and examine the graph
If the enable switch is on, the graph display reduced the signals but If the enable switch off, thus the graph does not display the reduced signal. After that. Click stop button to stop the VI.
23. On how to use a table to display data, first, click Control and search for Express Table indicator then add to the right waveform graph.Then, drag the object into the while loop to the right sample compression Express VI. Use the Wiring tool to wire the Mean output of the Sample Compression Express VI to the Signals input of the Build Table Express VI.
24. Go to the front panel and arrange the controls indicator then click run VI and click enable switch, observe and next, stop the VI.
Optional: Experiment with properties of the table by using the Table Properties dialog box. For example, try changing the number of columns to one. SAVE.
To search for example, click Help and choose Getting started and select Lab view then click search tab and type time delay express VI then press enter.Then,click location column header and search results by content type and choose the reference topics that contains the reference information about labview objects such as VIs, functions, palette, menus and tools.
Double click time delay express VI > click one example > run > move the vertical pinter slides> the amplitudes value A and B changes the pointer slides > stop VI
Next, select window and show block diagram and read the block diagram comments then close the example VI and open labview help window. Students need to click find the related examples button to open the NI example finder and display a list of example similar to example that used in this VI.
Lastly, click at Help and find example. Then, after experiment the NI example finder and choose close.
DONE CHAPTER 2































No comments:
Post a Comment