MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guía de usuario Pagina 21

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 210
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 20
Introduction
1-15
The simulink/src directoryalsocontainsexamplesofCMEXS-functions,
many of which have an M-file S-function counterpart. These C MEX
S-functions are listed in this table.
sfun_varargm.m
This isanexample M-file S-functionshowinghow to
use the MATLAB
vararg facility.
vlimintm.m
An example of a continuous limited integrator
S-function.This illustrates howto usethe sizee ntry
of
1 to build an S-function that can accommodate a
dynamic input/state width.
vdlimintm.m
An example of a discrete limited integrator
S-function. This example is identical to
vlimint.m,
except that the limited integrator is discrete.
Table 1-3: Example C MEX S-Functions
Filename Description
timestwo.c
A basic C MEX S -functio n that double s its input.
csfunc.c
An example C MEX S-function for defining a
continuous system.
dsfunc.c
An example C MEX S-function for defining a
discrete system.
dlimint.c
Implements a discrete-t ime limited i n te grator.
vsfunc.c
Illustrates how t o create a varia ble step block in
Simulink. T h is block im pleme n ts a variable step
delay in which the first input is delayed by an
amount of time determined by the second input.
mixed.c
Implements a hybrid dynamica l system consisting
of a continuous integrator (1/s) i n series with a unit
delay (1/z ).
Table 1-2: Example M-File S-Functions (Continued)
Filename Description
Vista de pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 209 210

Comentarios a estos manuales

Sin comentarios