<< 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

Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
Jyoti Reply
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
LITNING Reply
what is a peer
LITNING Reply
What is meant by 'nano scale'?
LITNING Reply
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
Adin
why?
Adin
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
Praveena Reply
hi
Loga
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





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