La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Configurer les fonctionnalités de bloc pour les S-functions MATLAB
Les S-functions MATLAB® permettent de configurer des fonctionnalités de bloc étendues grâce à diverses API.
Créer et configurer des ports d'entrée/sortie.
Spécifier des pas d'échantillonnage par bloc et par port.
Allouer de la mémoire à l'aide de vecteurs DWork.
Passer des paramètres à une S-function.
Créer des paramètres run-time.
Méthodes
Classes
Simulink.BlockPreCompInputPortData | Provide precompilation information about block input port |
Simulink.BlockPreCompOutputPortData | Provide precompilation information about block output port |
Simulink.MSFcnRunTimeBlock | Get run-time information about Level-2 MATLAB S-function block |
Simulink.RunTimeBlock | Allow Level-2 MATLAB S-function and other MATLAB programs to get information about block while simulation is running |
Simulink.BlockData | Provide runtime information about block-related data, such as block parameters |
Simulink.BlockPortData | Describe block input or output port |
Simulink.BlockCompDworkData | Provide post-compilation information about block DWork
vector |
Simulink.BlockCompInputPortData | Provide post-compilation information about block input port |
Simulink.BlockCompOutputPortData | Provide post-compilation information about block output port |
Rubriques
- Create Input and Output Ports
Create input and output ports on a MATLAB S-function block.
- Specify S-Function Sample Times
How to specify the rate or rates at which your block operates in MATLAB S-functions.
- Use DWork Vectors in S-Functions
Use DWork vectors to allocate block data to memory.
- Inherit Custom Data Types
Inherit custom data types for the values of a block's signals and parameters in MATLAB S-functions.
- Pass Dialog Parameters to S-Functions
Process parameters passed via the MATLAB S-function block dialog box.
- Create and Update S-Function Run-Time Parameters
Create and use run-time parameters in MATLAB S-functions.
- Use MATLAB S-Functions as Sim Viewing Devices in External Mode
Specify MATLAB S-function as a sim viewing device for use in external mode.
- Level-2 MATLAB S-Function Compliance with Model Operating Point
Use model operating point in MATLAB S-functions to save and restore simulation state.