It is also desirable to have some familiarity with the C programming language. Thus it will not be described in detail how to build the Simulink model mentioned in this tutorial. 3 Prerequisites It is assumed that the reader is already familiar with Matlab/Simulink. It is quite possible, but not guaranteed, that the tutorial is valid for other versions as well. The steps in this tutorial have been performed using Matlab v7 and Simulink v6. Reports of errors to the author are much appreciated. This means that this tutorial can contain ambiguities or outright errors. 2 Validity of this document The method described in this tutorial has not been extensively tested. A description of how the controller built in Simulink can be called from Delphi is also included. The steps described here should be easily modified to use it on Linux/Unix-platforms. The target platform for this tutorial is Windows. 15ΔΆ 1 Purpose The purpose of this document is to describe how to use a controller built in Matlab/Simulink from other software. 1 Purpose Validity of this document Prerequisites Tutorial Preparations Building a controller Generating C code Writing a wrapper Creating a definition file Creating the DLL Using the DLL Source code grt_shell.c Comments on the interface The code f Controller.pas Comments on the implementation The code Contact information. Persons with knowledge in the C programming language should have no problems converting the steps in this tutorial to build Linux/Unix libraries, thus expanding the scope of this document to be applicable not only on Windows. This makes it possible to develop advanced controllers in Simulink, and then use them from an arbitrary application. 1 From Simulink model to DLL A tutorial By Roland Pfeiffer Abstract This document attempts to give a hands-on description on how to make a DLL from a controller built in Simulink.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |