User:DukeEgr93/DSPACE

From PrattWiki
Jump to navigation Jump to search

This is a personal sandbox for using the dSpace systems in Hudson 149. Several parts of it will move to the main site eventually.

General Startup

The following describes how to begin an experiment from scratch. More information will be provided later on how to reload an already-completed experiment.


  1. Start dSpace ControlDesk (CD)
  2. In CD, go to File->New Experiment
    • Give the experiment a name, decide where you want all the files to go for the Working root, add author information and a description; when completed, the Experiment tab will have the name of the experiment as well as a .cdd link.
  3. Click on the Platform tab, right click Simulink, and Open Matlab - the first time MATLAB is started on a computer it will take quite some time to start up. When ready, the Simulink logo in the Platform window will be in color
  4. Within the new MATLAB window, type simulink
  5. In Simulink, go to File->New->Model; when the model comes up, save it inside the folder you chose when creating the experiment
  6. In the model's window, go to Simulation->Configuration Parameters
    • Solver: make sure to use a fixed-step solver; change the Fixed-step size if need be
    • Hardware Implementation: choose the Motorola 32-bit PowerPC; this will make the Byte ordering "Big Endian" and the Signed integer division rounds to "zero."
  7. Back in the ControlDesk, the left window should still be Platform (if not, pick the Platform tab). At the bottom of the CD window, pick File Selector and find the Simulink model you have saved. Drag its name to the Simulink platform - the icon will change from the Matlab logo to a small red box with a green arrow, blue rectangle, and pink clock.
  8. Create the model (this must be done before variables can be generated in the next step; more information below about different models)
  9. Right click the Simulink platform and select Build Variable File. Save the model if need be