This action might not be possible to undo. Are you sure you want to continue?
the release of LabVIEW 8.20, students now have the opportunity to take advantage of LabVIEW Projects that enable students to run programs created using the LabVIEW DSP Module on multiple targets simultaneously. It also facilitates simple and easy management of large applications wherein several files are developed and need to be ported to multiple computers. In this short tutorial, you will: Learn how to create a new project, Add a new or existing VI to a LabVIEW Project , Creating a build specification to flash a specific DSP board. Table of Contents 1. Create A New Project 2. Adding a new or existing VI to a LabVIEW Project 3. Creating a Build Specification to Flash a DSP Board 1. Create a New Project: LabVIEW 8.20 allows users to create projects for the DSP Module in two ways, using the DSP project wizard or manually. Using the DSP Project Wizard to create a new project • Launch LabVIEW 8.20. You will see the following launch screen:
Figure 1. The LabVIEW 8.20 Launch Screen • On the lower left corner of the launch screen notice that under the targets section, DSP Project is highlighted. Click on the “GO” button to launch the DSP Project Wizard • This will bring you to the first screen of the DSP Project Wizard as shown in figure 2. This lets you choose whether you want to include a new project with a new VI or an existing VI. If the option to use an existing VI is chosen, then the VI path needs to be specified in the dialog below the Project Type dialog. For this tutorial, we are going to choose a Blank VI.
Figure 2. Define The Project
Note that the VI that is created here (Untitled 1) resides under SPEEDY-33. The LabVIEW Project with NI SPEEDY-33 and Chosen I/O You can now build your VI as you normally would in LabVIEW. In the next step you can choose the DSP target of your choice as shown in figure 3.0 currently supports four academic DSP targets: o NI SPEEDY-33 (TI VC-33) board o TI C6416 DSK o TI C6713 DSK and o TI C6711 DSK Figure 3. . LabVIEW DSP Module 2. The DSP project wizard only allows you to choose one DSP target. it still exists in hardware but you will not be able to access the I/O in LabVIEW • Clicking on Finish will help create a LabVIEW Project that includes the chosen target and I/O as shown in figure 4. This is because this particular VI will run on the SPEEDY-33 DSP board. More targets may be added after the project is created. Select Target and I/O options Note that you can also choose what I/O of the board you want to include your project.• Click on Next. • Figure 4. This is a software-only feature – which means that even if you do not add an I/O to your project.
• To find out more information on how to add new targets and add existing/new VIs. You will see the splash screen in figure 5. refer to the other sections of this tutorial.20. Creating a new project manually • Launch LabVIEW 8. To add a new target to a LabVIEW project. • You can also add your target manually by selecting the third option “New target or device” • Selecting this option will show you all the four supported targets in LabVIEW DSP Module (Note: You may see other targets if you have LabVIEW FPGA and LabVIEW Real-time modules installed) Figure 7. Select the “Empty Project” from “New…” Figure 5. select the first option “Existing target or device” and LabVIEW will automatically detect the target for you. select “New >> Targets and Devices…” • If you have the DSP board connected to your computer. An Empty Project Now you can add the necessary DSP target and I/O to this project. Adding A Target to a Project . From the menu. Create A New Project Manually LabVIEW will create a blank project that includes your host computer as the only target as shown in figure 6 • Figure 6. right-click on “Project:Untitled Project 2” or whatever the name of the project is for your application.
you should see something similar to figure 10 • Figure 10. This does not change the hardware properties.Select “SPEEDY-33” from this list and click OK LabVIEW creates a new item under the project hierarchy called the “SPEEDY-33” as shown in figure 8. Adding all the I/O points to the Project . right-click on the SPEEDY-33 in the project and select “New >> Elemental I/O”. The New Target is Added to the Project • Note that as it stands the SPEEDY-33 item does not include an I/O points in the project. If you are not sure what you want to use. analog output. To add an I/O point (analog input. Adding Elemental I/O to a target You can choose to add all the I/O points or only those that you wish to use in your current project. This only affects what I/O you can access. • • Figure 8. Figure 9. After adding the I/O points. digital input or digital output). You can also rename the target to make it recognizable especially if you have multiple targets connected. we recommend that you add all the I/O points. You will see a screen similar to figure 9.
Adding a New VI to the LabVIEW Project . • Figure 12. A Project with a DSP target and I/O points in LabVIEW To add a new VI to the project: • Right-click on the “SPEEDY-33” item in the project and select “New >> VI” Figure 13. Project After Adding All I/O Points in LabVIEW You have successfully created a project in LabVIEW that targets the DSP module. please refer to the previous section. You may also have VIs already included. Adding a new or existing VI to a LabVIEW Project • This section assumes that you either have a project with a DSP target and I/O points already created similar to figure 12. Your project should now look similar to figure 11 Figure 11. If you need information on how to create one.• Click on OK.
Give your build a unique name . we are going to perform convolution. Adding an existing VI to a LabVIEW project Now. thereby helping you save time and make it easy to recompile and flash your VIs onto the DSP board • To create a build specification – right click on “Build Specification” under the “SPEEDY-33” DSP item in the project (similar to the one shown in figure 15) • Figure 15. give your build a name that is descriptive of the application. your project will look similar to figure 14. For example in this case. To open the VI. you may work with the VIs as you would normally would in LabVIEW. Creating a Build Specification to Flash a DSP Board • LabVIEW Projects give you the option to have multiple build specifications for your DSP board. right-click on Build Specifications Select “New >> Flash Memory Build” In the screen that follows as shown in figure 16. • • Figure 16. just double-click on it in the project. To create a build specification. Figure 14.To add an existing VI to the project • Right-click on the “SPEEDY-33” item in the project and select “Add File” and select the appropriate VI you would like to add. After adding the file. hence we have named Convolution.
to compile and flash the DSP with the selected VI. c. En particular. By default the execution is targeted to Windows. b. in the Source File item. • • Figure 1. ────────────────────────────────────────────────── Example 1: Simulating and Analyzing a Signal Complete the following steps to create a VI that simulates a sine wave and displays its time and frequency domains in graphs. The timing characteristics of the sine wave will be the following: samples per second: 8000. Change the x-axis minimum value to 0 and maximum value to 128. We will simulate a sine wave and display it in this graph.Frequency Domain. Change the y-axis minimum value to be -5000 and maximum value to 5000. Open a blank VI and build the following front panel. right-click on the build name and select “Deploy” ────────────────────────────────────────────────── Ejercicio 1. select the VIs that you would like to flash to the DSP memory Figure 17.Time Domain (by double clicking on the label). . el ejemplo ilustra cómo generar y mostrar una onda sinusoidal en los dominios del tiempo y la frecuencia. 1. Place another waveform graph to display the frequency domain of the input signal and label it Input Signal . Launch LabVIEW 7. Place a waveform graph. Target the LabVIEW DSP Module to execute on NI SPEEDY-33 by choosing SPEEDY33 for Execution Target. Select the VI you would like to download to Flash Click on OK Now. 2. under Scales tab disable the Autoscale options for X and Y Axis. Front Panel of Example 1 a.1 Embedded Edition.• Next. Este ejercicio tiene el propósito de introducir al estudiante en el uso del entorno LabVIEW DSP. number of samples: 128. From the Properties shortcut menu. located on the Controls»Graphs palette and change the label from default Waveform Graph to Input Signal .
Check the Add noise box and choose Uniform White Noise for the Noise type. Place the Simulate Signal Express VI located on the Functions» Embedded Signal Generation palette. Input Signal . and set the minimum value to 0 and maximum value to 4000. Block Diagram of Example 1 a. Wire the Amplitude and Frequency (Hz) terminals to corresponding inputs of the Simulate Signal Express VI. Build the following block diagram. Since we will sample at 8000 Hz with 128 number of samples. set the Multiplier to 62.d. c. Select the Magnitude (peak) option under Spectral Measurement and click OK. Wire the Sine with Uniform output of Simulate Signal VI to Signals input of Spectral Measurements. Set the maximum scale range of Frequency (Hz) slider to 2000 and the maximum scale range of Amplitude slider to 5000. Wire the FFT – (Peak) output of the Express VI to Input Signal – Frequency Domain graph terminal.Frequency Domain Graph Properties e. b. Place the Spectral Measurements Express VI from Functions»Signal Processing»Frequency Domain palette.5 (8000/128). under the Scales tab disable the Autoscale options for the both axis. From the Properties shortcut menu. For y-axis set the minimum value to 0 and maximum value to 5000. Double click on the Express VI to configure it. 3. . Wire the Sine with Uniform output of the VI to Input Signal – Time Domain graph terminal. For x-axis change the name to Frequency (Hz). Figure 3. Place two Horizontal Pointer Slides from Controls»Numeric palette and label them Frequency (Hz) and Amplitude. Figure 2. Double click on the Express VI and configure it to have a Signal Type of Sine.
5. Run the VI again. Label the new graph Filtered Signal – Time Domain.vi. You will use it again in the next example. Adjust the Frequency and Amplitude values and run the VI. Switch the execution target back to NI SPEEDY-33 by choosing Operate»Switch Execution Target»SPEEDY33 from the menu. Create a copy of Input Signal – Frequency Domain waveform graph (by holding down Ctrl and dragging the graph) and label the new graph Filtered Signal – Frequency Domain. on the block diagram. Save the VI as Example 1. Target the LabVIEW DSP Module to execute on Windows by choosing Operate»Switch Execution Target»LabVIEW for Windows from the menu. e. . 1. Create a copy of Input Signal – Time Domain waveform graph (by holding down Ctrl and dragging the graph). After being compiled and downloaded to target. and to display the filtered signal in time and frequency domains.vi. Save and close Example1. Modify the front panel as shown in the following figure. b. Select File»Save As and rename the VI to Example 2. Review the Properties of the new graph and note that it has the same x and y scales as Input Signal – Time Domain graph. Configuration Window for Simulate Signal Express VI d. En este ejemplo el estudiante aprenderá a utilizar las herramientas necesarias en el filtrado de señales. As the VI runs. Place a While Loop located under Functions»Structures palette. ────────────────────────────────────────────────── Example 2: Integrating Simple Filters Complete the following steps to apply a Lowpass filter to a simulated a sine wave. LabVIEW DSP Module Status Monitor dialog box will open. 3. a. 7.Figure 4. 4. change these values and observe the graphs in time and frequency domains. ────────────────────────────────────────────────── Ejercicio 2. the VI starts running on the target hardware. 2. 6.vi. Open the Example 1.vi that you built in previous example of this tutorial.
vi a.4. Then connect the FFT . Double click on the VI and configure it by entering 1000 for Cutoff Frequency. Front Panel of Example 2. Block Diagram of Example 2. Figure 1. Display the filtered signal by wiring the Filtered Signal output of the Express VI to Filtered Signal – Time Domain terminal. and selecting Infinite impulse response (IIR) filter with Chebyshev topology of order 5. Wire the Filtered Signal output of the Filter VI to the Signals input of Spectral Measurements. Create another copy of the Spectral Measurements Express VI by dragging it while holding the Ctrl key.vi Modify the block diagram as follows. b. Figure 2. Place a Filter Express VI from Functions»Signal Processing»Filters palette to apply a Lowpass filter to the signal.(Peak) output to Filtered Signal – Frequency Domain terminal to display the frequency component of the filtered signal. .
Wire the output of the Select function to Analog Output node. Utilizar los periféricos de entrada y salida de la tarjeta DSP. Place the Analog Output node from Functions»Elemental I/O palette. 3. If the Filtered? button is ON.5. Otherwise the unfiltered signal will be played. Double click on the node and select 1 channel multiple samples on the General tab. and choose the sample rate of 8000Hz under Configuration tab. Modify the block diagram as shown in the following figure. 1. a. the signal is attenuated. Open Example 2. ────────────────────────────────────────────────── Ejercicio 3.vi. ────────────────────────────────────────────────── Example 3: Acquire. Place a Select Function from Functions»Comparison palette and wire the Filtered? terminal to its condition input. Este ejemplo utiliza los nodos de entrada/salida en el módulo de LabVIEW DSP para adquirir sonido desde el micrófono integrado en la tarjeta NI SPEEDY-33 y reproducir una versión filtrada de esta misma. Analyze and Generate Sound in Real Time Complete the following steps to change the VI from a previous exercise to acquire sound through the microphone on the NI SPEEDY-33 board and to play back the filtered one. Place a Push Button from Controls»Boolean palette and label it as Filtered?.vi. . Configuration Window for Filter Express VI Run the VI. Save and close Example 2. Notice that as you increase the frequency beyond 1000Hz. Wire the Filtered Signal output from Filter Express VI to the true case of the Select function and wire the Sine output of the Simulate Signal VI to the false input of the Select function.vi that you built in previous example and save it as Example 3. 2. 6. By default it is configured to output a single sample to a single channel. b. Figure 3. the filtered signal will be sent to the sound output.
Remove the Amplitude and Frequency sliders and the broken wires. Figure 2.vi (step 1) 4. Block diagram of Example 3. In this case. . Double click on the Analog Input node and select 1 channel multiple samples under General tab and keep the default values under Configuration. Jumper Microphone Level Line Level JP1 (Left Channel) JP1-2 to JP1-1 JP1-2 to JP1-3 JP2 (Right Channel) JP2-2 to JP2-1 JP2-2 to JP2-3 6. Alternatively. Block Diagram of Example 3. Whistle into the left microphone on the board (labeled MicL) and observe the graphs on the front panel while listening to the sound output generated. Go to the block diagram and replace the Simulate Signal VI with Analog Input node located on Functions»Elemental I/O palette. using the audio cable you can connect the sound output of your computer to the Analog Input jack of the board and play a sound file on your computer. remember to change the Input Level jumper settings on the board from Mic (Microphone Level) to Line (Line Level). 5. The input signal will now be acquired through the left microphone. Run the VI.Figure 1. Check the Input Level jumper settings on the board and make sure Mic (Microphone Level) is selected. Adjust the Frequency slide to change the pitch and Amplitude slide to change the volume as needed. Connect your headphone to the Analog Output jack of the NI SPEEDY-33 board (labeled Output on the board). 7.vi (step 2) 8. Run the VI and listen to the filtered and unfiltered sine wave. Note that these settings are also the default settings for Analog Input.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.