MATLAB SIGNAL PROCESSING BLOCKSET 7 Guia do Utilizador Página 35

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 738
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 34
Configuring Simulink for DSP Systems
2-11
Configuring Simulink for DSP Systems
When you create a new DSP model, you may want to adjust certain Simulink
settings to suit your own needs. A typical change, for example, is to adjust the
Stop time parameter (in the Simulation Parameters dialog box) to a different
value. Another common change is to specify the
Fixed-step option in the
Solver options panel to reflect the discrete-time nature of the DSP model.
The DSP Blockset provides an M-file,
dspstartup, that lets you automate this
configuration process so that every new model you create is preconfigured for
DSP simulation. The M-file executes the following commands.
set_param(0, ...
'SingleTaskRateTransMsg','error', ...
'Solver', 'fixedstepdiscrete', ...
'SolverMode', 'SingleTasking', ...
'StartTime', '0.0', ...
'StopTime', 'inf', ...
'FixedStep', 'auto', ...
'SaveTime', 'off', ...
'SaveOutput', 'off', ...
'AlgebraicLoopMsg', 'error', ...
'InvariantConstants', 'on', ...
'ShowInportBlksSampModeDlgField','on', ...
'RTWOptions', [get_param(0,'RTWOptions')
' -aRollThreshold=2']);
The following sections provide information about dspstartup:
“Using dspstartup.m”
“Customizing dspstartup.m”
“Performance-Related Settings”
“Miscellaneous Settings”
For complete information on any of the settings, see the Simulink
documentation.
Vista de página 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 737 738

Comentários a estes Manuais

Sem comentários