Choose "Code" and "Real Time Options...", then set: Step Size: A number, which is the sample spacing in seconds Template Makefile: rti31.tmf Build Command: make_rt CLIENT=dspace04 (Use whichever dspace # you happen to be using!) Then click "Build" to download the program.
This will allow a program running on the dSPACE to be changed "on-the-fly" from the Simulink diagram. To set this up: Under "Simulation", choose "External" Then under "External Options...", type rtcom31 CLIENT=dspace04 (or whichever dspace # you are using!) Then choose "Start" under "Simulation", and changes will take effect on the dSPACE box.
down31 foo -c dspace04
at a UNIX prompt. Once you have compiled a program, you can replace down31 with ld31. This will save some time, since the compile step will be skipped, and the program is loaded and run on the dSPACE box.
This can be fixed as follows. Suppose you are working with dspace04. Then type:
dcont -c dspace04 -k
dsp_daemon -c dspace04 -u
If you still are not able to download a program, try the following sequence of commands (assuming you are downloading C program foo.c to dspace04):
down31 foo -c dspace04
ld31 foo -c dspace04
dcont -c dspace04 -k
dsp_daemon -c dspace04 -u
ld31 foo -c dspace04
ld31 foo -c dspace04