[MBDyn-users] Struggling to get MbDyn interface to Scilab/Xcos working

StUstD stustd at gmail.com
Sun Jun 26 00:17:54 CEST 2011


It works!

Thanks,

-- Burley

On Sat, Jun 25, 2011 at 21:06, Collette Yann <ycollette.nospam at free.fr>wrote:

> **
> Hello,
>
> For the first question: you need to do a 'exec builder.sce'
> Once this is done: do a 'exec loader.sce' to load the toolbox.
>
> For  the second question: at the bottom of the webpage, there is a link to
> download a zip archive of the trunk.
>
> YC
>
> Le 25/06/2011 19:54, StUstD a écrit :
>
> Thanks. Two questions:
> 1) I miss the buildblocks.sci and loadblocks.sci scripts as mentioned in
> the README file...
> 2) I can not find a single download file. Must I download file by file...?
>
>  -- Burley
>
> On Sat, Jun 25, 2011 at 19:01, Collette Yann <ycollette.nospam at free.fr>wrote:
>
>>  Hello,
>>
>> Have a look here:
>> http://forge.scilab.org/index.php/p/xcos-mbdyn/source/tree/HEAD/
>> I have "ported" the mbdyn toolbox to xcos.
>> It compiles fine under windows and linux and I succeeded with the demos
>> under windows (but you will need to compile mbdyn using cygwin to benefit
>> from the sockets).
>>
>> Best regards,
>>
>> YC
>>
>> Le 25/06/2011 16:37, StUstD a écrit :
>>
>>  I'm struggling to get MbDyn interface to Scilab/Xcos working. My setup
>> is linux/debian (sqeeze). mbdyn-1.3.18, scilab-5.3.2.
>>
>>  I've successfully compiled and linked libsockwrite.so in the Scilab's
>> contrib/ScicosInterface director. When I start scilab, the scilab.ini script
>> automatically loads loadblocks.sci which in turn loads sockread_intf.sci
>>  and sockwrite_intf.sci, all successfully if I understand from what I learn
>> from the output to the scilab console:
>>
>>  <<<<<<<<<<<<< start of output  (empty lines removed)
>> >>>>>>>>>>>>>>>>>>>>>>
>> ...
>> ...
>> ...
>> ->// Author: Tommaso Solcia <tommaso.solcia at mail.polimi.it>
>> -->//
>> -->// ulink()
>> -->// load links
>> -->exec loader.sce
>> -->// This file is released under the 3-clause BSD license. See
>> COPYING-BSD.
>> -->// Generated by builder.sce : Please, do not edit this file
>> -->//
>> ----------------------------------------------------------------------------
>> -->//
>> -->sockwrite_path = get_absolute_file_path('loader.sce');
>> -->//
>> -->// ulink previous function with same name
>> -->[bOK, ilib] = c_link('sockwrite');
>> -->if bOK then
>> -->  ulink(ilib);
>> -->end
>> -->//
>> -->[bOK, ilib] = c_link('sockread');
>> -->if bOK then
>> -->  ulink(ilib);
>>  -->end
>> -->//
>> -->link('/opt/inst/scilab/5.3.2/lib/scilab/libsciscicos' +
>> getdynlibext());
>> Shared archive loaded.
>> Link done.
>> -->link(sockwrite_path + 'libsockwrite' + getdynlibext(),
>> ['sockwrite','sockread'],'c');
>> Shared archive loaded.
>> Link done.
>> -->// remove temp. variables on stack
>> -->clear sockwrite_path;
>> -->clear bOK;
>> -->clear ilib;
>> -->//
>> ----------------------------------------------------------------------------
>> -->// load interfaces
>> -->exec sockwrite_intf.sci;
>> -->exec sockread_intf.sci;
>> <<<<<<<<<<<<<<<<<<  end of output >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>
>>  Having started Xcos, however
>> 1) I don't see a palette with MbDyn input or output blocks.
>> 2) Also, after starting "mbdyn pendulum" the system crashes when loading
>> the Pendulum.cosf into Xcos,
>> but things seem to go wrong at step (1) already.
>>
>>  Help much appreciated! Thanks.
>>
>>  -- Burley
>>
>>
>> _______________________________________________
>> MBDyn-users mailing listMBDyn-users at mbdyn.orghttps://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users
>>
>>
>>
>> _______________________________________________
>> MBDyn-users mailing list
>> MBDyn-users at mbdyn.org
>> https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users
>>
>
>
>
> _______________________________________________
> MBDyn-users mailing list
> MBDyn-users at mbdyn.org
> https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20110626/815ad8dd/attachment.htm>


More information about the MBDyn-users mailing list