Title: Automatic Model Generation From Simulink Files
1Automatic Model Generation From Simulink Files
Dr. Antonello Monti () Dr. Marco Riva
() Deepa L. Kadiri ()
Electronic Section
()
()
2Contents
- VTB-Simulink Interface Model
- Model Interface
- S-Functions
- Parameters
- Model Generation
- Conclusion
3VTB-Simulink Model Interface Tool
Starting from a Simulink model file and a
suitable Icon file the tool generates
automatically a ready to use VTB model
(ltnomegt.vts file)
4Extensions and Enhancements
- The tool has been updated to meet the the VTB2002
protocol - We also have some new features
C-code Simulink embedded S-Functions
Export Simulink2VTB Parameters
Natural Signal
COUPLING
5Example
- Boost model defined with native Simulink blocks
6Model Interface
- Interface to specify different types of
coupling. - Any Simulink Input-Output port can be mapped to a
VTB terminal and the user can specify the
nature of the port.
Signal Coupling (Directed flow of information
through objects)
Natural Coupling (Interactions require
enforcement of physical conservation principles)
VCCS (Voltage Controlled Current Source)
CCVS (Current Controlled Voltage Source)
7What are S-Functions ?
- S-Function block represents the possibility to
embed in a Simulink model algorithms written in
C-code - Powerful mechanism for extending the capabilities
of Simulink - General purpose blocks can be built which can be
used many times in a model. - Used to create custom Simulink blocks
8Example
S-Function
9Parameters Definitions
- In a Simulink model, parameter changes affects
the run time simulation - It is possible to customize the export of some
parameters from SIMULINK to VTB
10Conclusion
- The Simulink2VTB tool Interface was updated to
the VTB2002 release - The tool has been enhanced
- User port type definition
- S-Function coding
- Parameter Export capability