Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
• This tutorial is aimed at giving an overview of
the basics for utilizing the dSPACE cards for
data acquisition and signal generation
• It ONLY covers the most basic operations
• If more complex operations are necessary,
there is plenty of information about MATLAB
Simulink and dSpace Control Desk in the web
Overview
• Basically, two elements compose the
configuration of a dSPACE measurement task:
– The SIMULINK model, which is loaded into the
dSPACE card as a real time application
– The dSPACE Control Desk GUI, which enables to
interact with the real time application and to store
data to the host computer hard disk
Overview
• This tutorial shows how to configure the
system for:
– Acquiring two analog signals using the dSPACE
input ports (labelled ADC XX in the card)
– Generating one analog voltage signal from one of
the dSPACE output ports (labelled DAC XX in the
card)
WARNING
• The dSPACE analog input ports (labelled ADC
XX) can measure VOLTAGE signals in the range
+10V and ‐10V
The DAC box sets the
voltage value to be
generated by the
dSPACE output port
From the SIMULINK
Library Browser, go to
Commonly Used Blocks,
Drag and Drop ”Gain”
The Gain Blocks for the ADC
ports must be set to 10, so that
the actual voltage value is
obtained
The Gain Blocks for the DAC
ports must be set to 0.1, so that
the correct voltage value is
generated
By double clicking the ADC/DAC
blocks, a dialog box enables to
select which channel is to be
acquired
From Library
Browser/Commonly Used
Blocks, Drag and Drop ”Out”
Block
Now, Out1 provides the value of
ADC5 in Volts, and Out2 the
value of ADC1 in Volts
Go to Library Browser/
Commonly Used Blocks , Drag
and Drop ”Constant” Block
Now, Constant Block controls
the voltage value to be
generated by the port DAC1
Save the Simulink Model in the
Work Folder
Press the ”Build Model” button
The SIMULINK application is now
loaded into the dSPACE card
In the Work Folder, together
with the Simulink Model, one
can see the files created by the
build process