|
Example: VHS ADC/DAC and SignalMaster |
Top Previous Next |
|
This example demonstrates a system made with a SignalMaster and a VHS ADC/DAC.
The samples captured by ADC channel #1 are sent to the DSP of the SMD via a RapidChannel connection and the DSP calculates the FFT of the signal. Both the original signal and its FFT are displayed on the PC screen.
Four DDS tasks placed in the FPGA of the VHS produce the samples for the DACs.
Samples captured by the ADC channel #1 are sent to task storage which can store up to 2048 consecutive samples. Task storage sends the samples to the DSP via the RapidChannel interface. Data from the other ADC channels are discarded.
A detailed description of the main tasks is available here.
The VHS board is controlled using the VHS Control Utility to set the clock source and start the ADCs and DACs running.
You should connect a signal generator to the ADC channel #1 and a scope to the DAC's output to visualize the signal generated.
Running the Example Users of the SignalMaster Quad should select the type of board they have as shown here. Select the type of VHS you use as shown here. Make sure you have the correct cable connections as shown below.
You can build the application by typing Ctrl+B and then execute it by clicking run. Note that building this application takes a few minutes as it involves launching the Xilinx tools.
Once the application is running, you can change the settings of the VHS using the Lyrtech VHS Control Utility (Start Menu / Host SDK / cPCI Platform / VHS Control Utility). By default you should select 'Clock Source = Fixed' and tick 'Run'.
You should see the signal and its FFT appearing on your PC screen as shown in the picture below. In this example, a 10MHz sine wave was connected to the input of ADC channel #1. On the oscilloscope connected to the DAC you should see a sine wave with a frequency of 1.6MHz.
Prerequisites You need the following components to be able to run this example:
The following picture shows the system with a SignalMaster Dual:
The following picture shows the system with a SignalMaster Quad:
|