From: Agostino De M. <ago...@un...> - 2009-03-05 16:19:28
|
Simulink .mdl files are in simple ascii text format. MDL stands for Model File Format. It contains keywords and parameter-value pairs that describe the model. The file describes model components in hierarchical order. There are quite a few fellows that have worked on parsing .mdl format. This is an example using python: http://www.fauskes.net/nb/parsing-simulink/ Scrolling all the posts in the above page I could get lots of info. Another example in Java: http://conqat.cs.tum.edu/index.php/Simulink_Library Agostino Quoting b mills <bri...@in...>: > I've been using modified Aerosim xml parsers to import JSBSim config > files into Matlab for several years now. The problem is that the > parsers have not kept pace with changes in the JSBSim xml format. > They are in need of an overhaul and I can currently only import the > old (v1.0?) format JSBSim files. The parsers are written as m-files. > > What would be interesting is to see if a matlab m-file could be > written that would "parse" a simulink model of say, a flight control > subsystem, and produce a JSBSim compatible fcs xml file. If RTW > workshop can turn a simulink model into code, then it seems like > something could be written as an m-file to do this. I've already > written a Matlab GUI program that can produce a JSBSim FCS xml file, > so some progress is already made on this. > > Brian > > ----- Original Message ----- > From: Agostino De Marco <ago...@un...> > Date: Thursday, March 5, 2009 9:02 > Subject: Re: [Jsbsim-matlab] JSBSim S-Function > To: jsb...@li... > >> This is interesting actually. Using JSBSim with Matlab may >> open new and unespected perspectives. >> I think that the data-driven feature of JSBSim is the most >> beneficial for Matlab users. An interesting area could be >> how to import the JSBSim configuration structure in a >> Matlab structure. >> >> Agostino >> >> >> Quoting "Jon S. Berndt" <jon...@co...>: >> >> > This sounds very interesting. I guess at some point I'll have to >> get a demo >> > version of Matlab and try this out. >> > >> > >> > >> > Jon >> > >> > >> > >> > >> > >> > From: b mills [mailto:bri...@in...] >> > Sent: Thursday, March 05, 2009 1:06 AM >> > To: jsb...@li... >> > Subject: [Jsbsim-matlab] JSBSim S-Function >> > >> > >> > >> > Building off the work that Agostino has already completed, I now >> have a >> > JSBSim S-function running in Matlab. It is pretty rudamentary, >> but it >> > appears to work. I was even able to linearize it using the >> Control and >> > Estimations Tool Manager. As it is curently implemented. the >> derivatives of >> > the states are calculated by JSBSim and then integrated to >> continuous states >> > by Matlab. >> > >> > >> > >> > I will be working to further develop this over the next few days. >> > >> > >> > >> > Brian >> > >> > >> >> ---------------------------------------------------- >> --- >> Agostino De Marco, PhD >> Assistant Professor >> Università degli Studi di Napoli Federico II >> / University of Naples Federico II / >> Dipartimento di Ingegneria Aerospaziale >> / Department of Aerospace Engineering / >> via Claudio 21, 80125 Napoli - Italy >> Tel.: +39 0817683323 >> Fax: +39 0817683622 >> Email: ago...@un... >> Web 1: www.dpa.unina.it/adag >> Web 2: www.dpa.unina.it/demarco >> ------------------------------------------------------- >> >> >> ----------------------------------------------------------------- >> ------------- >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing >> the Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation-Receive a $600 discount off the registration fee >> with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Jsbsim-matlab mailing list >> Jsb...@li... >> https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab >> > ------------------------------------------------------- Agostino De Marco, PhD Assistant Professor Università degli Studi di Napoli Federico II / University of Naples Federico II / Dipartimento di Ingegneria Aerospaziale / Department of Aerospace Engineering / via Claudio 21, 80125 Napoli - Italy Tel.: +39 0817683323 Fax: +39 0817683622 Email: ago...@un... Web 1: www.dpa.unina.it/adag Web 2: www.dpa.unina.it/demarco ------------------------------------------------------- |