From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8900b5c4ed2da116 X-Google-Attributes: gid103376,public From: Richard Maffei Subject: Re: Simulink S-Functions in Ada95 Date: 1998/04/30 Message-ID: <3548EDCF.6D3967D8@visi.net>#1/1 X-Deja-AN: 349248739 Content-Transfer-Encoding: 7bit References: <6i7ela$89j$1@news.Austria.EU.net> MIME-Version: 1.0 NNTP-Posting-Date: Thu, 30 Apr 1998 17:34:32 EST Reply-To: rickal@visi.net To: schroeer@amst.co.at Content-Type: text/plain; charset=us-ascii Newsgroups: comp.lang.ada Date: 1998-04-30T00:00:00+00:00 List-Id: Dr. Schroeer, Although I am not familiar with the Simulink product, I have interfaced Ada with Matlab. We were able to obtain a binding from Mathworks (created by a Matlab user and freely available). With luck, Mathworks may have a similar binding available for Simulink. If not, I believe there are tools available which generate Ada bindings from .h files. I hope this will assist you in your endeavors. v/r, Rick Dr. Joachim Schroeer wrote: > Has anybody ever tried to develop so-called S-functions for the modelling and > simulation tool Simulink (part of Matlab) from Mathworks Inc. in Ada? > > I've tried it in a number of ways, but failed. I use ObjectAda 7.1.1. > As I have no binding to simulink.h (and do not intend to write one), > I do not use the OA capability to produce a dll directly from Ada. > Instead I use the given MEX-file compiling a small C-file were the exported > (with convention => C) Ada subprograms are declared as extern. > All used Ada .obj-files are included in .lib-files which are passed to the > MEX-command. > The MEX produces a dll as long as no extern Ada procedures are called, but if > one > is called no dll is generated by MEX. > > MEX uses the Watcom C-compiler. > Is it not compatible to .obj-files, .lib-files created by OA? > > Any hints would be appreciated. > > J. Schroeer > > Dr. Joachim Schroeer > AMST-Systemtechnik GmbH > A-5282 Ranshofen, Austria > Tel.: (++)43 7722 85232 30 > Fax.: (++)43 7722 85232 99 > E-Mail: schroeer@amst.co.at