From: Roberts, D. J. <dro...@mi...> - 2009-04-08 14:06:25
|
Thanks Agostino, Opened it up in MS Visual Studio 2008 Express, and then changed a few include paths and it compiled & linked. I've changed some of the parameter access to utilize nodes. I'll test it soon to see how much speed up I get. -Dave Roberts -----Original Message----- From: jsb...@li... [mailto:jsb...@li...] Sent: Tuesday, April 07, 2009 4:31 PM To: jsb...@li... Subject: Jsbsim-matlab Digest, Vol 3, Issue 1 Send Jsbsim-matlab mailing list submissions to jsb...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab or, via email, send a message with subject or body 'help' to jsb...@li... You can reach the person managing the list at jsb...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Jsbsim-matlab digest..." Today's Topics: 1. Mathworks File Submission (b mills) 2. Re: Mathworks File Submission (Bowman, D. Stuart) 3. Re: Mathworks File Submission (b mills) 4. compiling mex file for S-Function (Roberts, David J.) 5. Re: compiling mex file for S-Function (Agostino De Marco) ---------------------------------------------------------------------- Message: 1 Date: Wed, 01 Apr 2009 22:24:42 -0400 From: b mills <bri...@in...> Subject: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> Message-ID: <fc8...@in...> Content-Type: text/plain; charset="us-ascii" Hi folks, Just wanted to let everyone know that the SFunction project is available for download from the Mathworks website- http://www.mathworks.com/matlabcentral/fileexchange/file_infos Simply type "JSBSim" in the search criteria and it should show up. Cheers! Brian -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 6 Apr 2009 10:41:53 -0400 From: "Bowman, D. Stuart" <sb...@mi...> Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> Message-ID: <837...@IM...> Content-Type: text/plain; charset="us-ascii" Works great for me!! Thanks for sharing, Brian. You may consider adding a how-to-run text file to your zip file. I'm pretty familiar with Simulink and it still took me a few tries before I had the paths set correctly and got the test model working. -stuart From: b mills [mailto:bri...@in...] Sent: Wednesday, April 01, 2009 10:25 PM To: jsb...@li... Subject: [Jsbsim-matlab] Mathworks File Submission Hi folks, Just wanted to let everyone know that the SFunction project is available for download from the Mathworks website- http://www.mathworks.com/matlabcentral/fileexchange/file_infos Simply type "JSBSim" in the search criteria and it should show up. Cheers! Brian -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Tue, 07 Apr 2009 06:12:18 -0400 From: b mills <bri...@in...> Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: jsb...@li... Message-ID: <fc7...@in...> Content-Type: text/plain; charset="us-ascii" You're right. I will try to get something added soon. Thanks! ----- Original Message ----- From: "Bowman, D. Stuart" <sb...@mi...> Date: Monday, April 6, 2009 10:42 Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> > Works great for me!! Thanks for sharing, Brian. > > You may consider adding a how-to-run text file to your zip file. > I'm pretty familiar with Simulink and it still took me a few > tries before I had the paths set correctly and got the test > model working. > > -stuart > From: b mills [mailto:bri...@in...] > Sent: Wednesday, April 01, 2009 10:25 PM > To: jsb...@li... > Subject: [Jsbsim-matlab] Mathworks File Submission > > Hi folks, > > Just wanted to let everyone know that the SFunction project is > available for download from the Mathworks website- > http://www.mathworks.com/matlabcentral/fileexchange/file_infosSimply type "JSBSim" in the search criteria and it should show up. > > Cheers! > Brian > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Tue, 7 Apr 2009 13:38:42 -0400 From: "Roberts, David J." <dro...@mi...> Subject: [Jsbsim-matlab] compiling mex file for S-Function To: "jsb...@li..." <jsb...@li...> Message-ID: <3CB...@IM...> Content-Type: text/plain; charset="us-ascii" Brian, Stuart pointed me towards your mathworks submission. I tried your sfuntest3.mdl and it works nicely. I'm interested in making use of it. I noticed it is slower than JSBSim. I think this is probably due to use of the GetPropertyValue() method at 120hz. From looking at JSBSim source I notice that comments suggest using the GetNode() function and then using the node's getDoubleValue() function for calls at 120hz. I'm going to try to modify JSBSimInterface.cpp & JSBSimInterface.h to incorporate this. Do you have the mex statement that you used to compile JSBSim_SFunction.mexw32? I tried with the following statement: mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" -L"..\JSBSim\lib\" When I do this I get an error concerning MexJSBSim.cpp at line 111. The compiler spits out: 'JSBSimInterface::Open' : cannot convert parameter 1 from 'const mxArray *' to 'std::string'. Is there a compile option that I'm forgetting that handles data type conversions? Regards, David Roberts -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Tue, 07 Apr 2009 22:30:34 +0200 From: Agostino De Marco <ago...@un...> Subject: Re: [Jsbsim-matlab] compiling mex file for S-Function To: jsb...@li..., "Roberts, David J." <dro...@mi...> Cc: "jsb...@li..." <jsb...@li...> Message-ID: <200...@we...> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" David, that project is compiled with MS Visual Studio 2008 Express. That might be a bad thing for someone. For others that is one good example of mex files done with the popular IDE from MS. It helps a lot when you have big a project. Agostino Quoting "Roberts, David J." <dro...@mi...>: > Brian, > > Stuart pointed me towards your mathworks submission.? I tried your? > sfuntest3.mdl and it works nicely.? I'm interested in making use of? > it. > > I noticed it is slower than JSBSim.? I think this is probably due to? > use of the GetPropertyValue() method at 120hz.? From looking at? > JSBSim source I notice that comments suggest using the GetNode()? > function and then using the node's getDoubleValue() function for? > calls at 120hz. > > I'm going to try to modify JSBSimInterface.cpp &? JSBSimInterface.h? > to incorporate this.? ?Do you have the mex statement that you used? > to compile JSBSim_SFunction.mexw32? > > I tried with the following statement: > > mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp? > SfunInterface.cpp stdafx.cpp? -I"..\JSBSim\src\" -L"..\JSBSim\lib\" > > When I do this I get an error concerning MexJSBSim.cpp at line 111.? ? > The compiler spits out: 'JSBSimInterface::Open' : cannot convert? > parameter 1 from 'const mxArray *' to 'std::string'. > > Is there a compile option that I'm forgetting that handles data type? > conversions? > > Regards, > > David Roberts > > ------------------------------------------------------- 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 ------------------------------------------------------- ------------------------------ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ------------------------------ _______________________________________________ Jsbsim-matlab mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab End of Jsbsim-matlab Digest, Vol 3, Issue 1 ******************************************* |