<< Chapter < Page Chapter >> Page >
  • Add the “Analog to Digital” and “Digital to Analog” converters (ADC and DAC) to your model:
A/D and D/A converters
  • Add the multi-port selector, in order to split the stereo input.
Multiport Selector
  • After placing the selector, double-click to open the dialog box and choose “columns” in the “select” label and “{1,2}” in the “indices to output label.
Multiport Configuration
  1. Configure the ADC and DAC blocks to a sampling rate to 96 KHZ and 16-bit samples.
DAC and ADC Configuration
  • The final model should look as follows:
AM (SQRT) Real Time Model
  • You should configure the DSP constants as shown in Figure 28. The frame period for all constants should be -1
Constant Value Parameters
  • Build the project and load the program to the DSK memory using ctrl+B.
  • Make sure that the signals generator amplitude is set to 1 Volt and frequency of [0.1,5] kHz.
  • Display the modulated and demodulated signals in the scope.

Model extensions

In this section we will extend the functionality of the example. Adding two more features:

  • A variable frequency carrier generator (Please refer to secion "A Configurable Carrier Wave Generator" in the Appendix)
  • An additional model for AM detection (Please refer to secion "The Coherent Detector (in brief)" in the Appendix).
  • Build GUI that we will enable:
    • Changing the modulation index
    • Changing the carrier frequency
    • Selecting the detection scheme

The modulation index and carrier frequency will be changed through RTDX.

  • Open the model created in the previous section
  • Replace the constant modulation index by an RTDX input (Please refer to Figure 30), and name it InputModulation.
RTDX input
  • Configure the RTDX input object to the values described bellow:
RTDX Input Configuration
  • Replace the sine wave block used for the carrier by the configurable carrier blocks (you may find them in the Configurable_Carrier.mdl file) The principle of operation of the Configurable Carrier Module is described in the Appendix. , and create a subsystem for the carrier generator as shown in Figure 32.

Your model should look as shown in Figure 33.

Inserting a Configurable Carrier

Figure 32 – Inserting a Configurable Carrier

AM (SQRT) Model with Configurable Carrier
  • Enter the Configuration Parameters menu (ctrl+E). Choose Real-Time Workshop=>TIC6000 Code-Generator, In The Run-Time box change the Build Action to “Build” The models will be loaded by the GUI script. :
Simulation Parameters

Push the OK button and close the “Configuration Parameters” window.

Rebuild *.out file using ctrl+B.

You now have two load files each one corresponding to a different AM scheme.

Creating the gui

  • Open a new GUI (Enter GUIDE in the MATLAB command line)
  • Add 2 sliders and one list box to the GUI, so it would look like:
GUI Design Screen
  • Now, double click on the list-box and change the string field:
List Box Configuration Screen

Change the string field to:

Coherent

SQRT

  • In the Modulation index slider set: Min=0.75, Max=1.5.
  • In the Carrier Frequency slider set: Min=1, Max=4.
  • Press the “play” button so you can save your GUI and open the GUI script m-file.

Questions & Answers

if three forces F1.f2 .f3 act at a point on a Cartesian plane in the daigram .....so if the question says write down the x and y components ..... I really don't understand
Syamthanda Reply
hey , can you please explain oxidation reaction & redox ?
Boitumelo Reply
hey , can you please explain oxidation reaction and redox ?
Boitumelo
for grade 12 or grade 11?
Sibulele
the value of V1 and V2
Tumelo Reply
advantages of electrons in a circuit
Rethabile Reply
we're do you find electromagnetism past papers
Ntombifuthi
what a normal force
Tholulwazi Reply
it is the force or component of the force that the surface exert on an object incontact with it and which acts perpendicular to the surface
Sihle
what is physics?
Petrus Reply
what is the half reaction of Potassium and chlorine
Anna Reply
how to calculate coefficient of static friction
Lisa Reply
how to calculate static friction
Lisa
How to calculate a current
Tumelo
how to calculate the magnitude of horizontal component of the applied force
Mogano
How to calculate force
Monambi
a structure of a thermocouple used to measure inner temperature
Anna Reply
a fixed gas of a mass is held at standard pressure temperature of 15 degrees Celsius .Calculate the temperature of the gas in Celsius if the pressure is changed to 2×10 to the power 4
Amahle Reply
How is energy being used in bonding?
Raymond Reply
what is acceleration
Syamthanda Reply
a rate of change in velocity of an object whith respect to time
Khuthadzo
how can we find the moment of torque of a circular object
Kidist
Acceleration is a rate of change in velocity.
Justice
t =r×f
Khuthadzo
how to calculate tension by substitution
Precious Reply
hi
Shongi
hi
Leago
use fnet method. how many obects are being calculated ?
Khuthadzo
khuthadzo hii
Hulisani
how to calculate acceleration and tension force
Lungile Reply
you use Fnet equals ma , newtoms second law formula
Masego
please help me with vectors in two dimensions
Mulaudzi Reply
how to calculate normal force
Mulaudzi
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, From matlab and simulink to real-time with ti dsp's. OpenStax CNX. Jun 08, 2009 Download for free at http://cnx.org/content/col10713/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'From matlab and simulink to real-time with ti dsp's' conversation and receive update notifications?

Ask