From: Bowman, D. S. <sb...@mi...> - 2009-03-06 16:28:14
|
I've been thinking of this same idea for a while. Take a flight control system designed in Matlab and autoconvert it to JSBSim's XML format. As you say, all of the basic components that exist in JSBSim for flight control also exist in Simulink. Higher level logic implemented by a Flight Management System might be more difficult to boil down to XML, but not necessarily impossible. I'd love to hear how this work progresses, Brian! The work of the DAVEML project (http://daveml.nasa.gov/) has produced a converter that takes their models from DAVEML to Simulink. The converter is written in JAVA. This is a least proof of concept that the mdl files can be read and processed (though, they do look rather complicated!). Also, glad to hear you switched the Simulink model to using discrete components. That was the right move for matching JSBSim. Cool work! -Stuart From: b mills [mailto:bri...@in...] Sent: Thursday, March 05, 2009 7:37 PM To: jsb...@li... Subject: Re: [Jsbsim-matlab] JSBSim S-Function So it seems entirely possible to generate jsbsim config files from simulink subsystems. Most of the components of a jsbsim fcs already exist in simulink (gains, summers, pids, lookup tables etc.) Custom masked subsystem blocks could be designed for actuators and the fcs_function components. That would pretty useful if you could "build" a fcs_function as a block component/subsystem in simulink and then have it auto-generate the corresponding xml. Brian ----- Original Message ----- From: Agostino De Marco <ago...@un...> Date: Friday, March 6, 2009 1:19 Subject: Re: [Jsbsim-matlab] JSBSim S-Function To: jsb...@li... > 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 > ------------------------------------------------------- > > > ----------------------------------------------------------------- > ------------- > 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 > |