[Scilab-users] XCos: custom block, error 'Undefined Function Type'
StefanT
S.Thonhofer at gmail.com
Mon Jul 13 14:47:24 CEST 2015
Hi Clément,
thanks for your advice. I'm now trying to do it using a type 4 function
type.
Cheers, Stefan
Clément David-2 wrote
> Hello Stefan,
>
> First of all to call a DLL is strongly suggest you to use the C API
> instead of the Scilab one for performance reason : we have to copy all
> the data before calling the Scilab simulation function and copy them
> back after the call whereas in C we just pass pointers to the data.
>
> The Scilab function type is supported as some blocks use it (BPLATFORM,
> PENDULUM_ANIM, BARXY, TKSCALE). You can also directly check the
> "xcos_toolbox_skeleton" that implement a sum block in Scilab.
>
> If you are unable to found the issue by yourself, post a dummy test
> case that I can use.
>
> Regards,
>
> --
> Clément
>
> Le jeudi 09 juillet 2015 à 05:43 -0700, StefanT a écrit :
>> hi,
>>
>> I am trying to introduce a new custom block for interfacing our
>> simulation
>> tool. the communication will be done via a Dll. the computational
>> function
>> of my block is a Scilab (Type 5) function which will exchange the
>> data with
>> the Dll. I am using Scilab 5.5.2 32bit.
>> For writing the interface function and computational function I
>> followed
>> mainly the book "Modeling and Simulation in Scilab/Scicos". If
>> anybody knows
>> of an equally detailled but more recent manual please let me know.
>>
>> I wrote an interface function, where the computational function is
>> referenced via
>> model.sim = list('myComputationalFunction',5);
>> in the 'define' section.
>> myComputationalFunction is loaded to Scilab already in the startup
>> file.
>>
>> when trying to run a model consisting of my blocks I get (at debug
>> level 2)
>> the following output in Scilab:
>> block 1 is called with flag 4 at time 0.000000
>> Undefined Function type
>> block 2 is called with flag 4 at time 0.000000
>> Undefined Function type
>> block 1 is called with flag 5 at time 0.000000
>> Undefined Function type
>> block 2 is called with flag 5 at time 0.000000
>> Undefined Function type
>>
>> I know that the computational function isn't even entered because I
>> placed
>> there some disp() statements.
>>
>> Is this a bug in Scilab/XCos? Or is function type 5 not supported in
>> the
>> current version?
>>
>> thanks in advance, stefan
>>
>>
>>
>> --
>> View this message in context: http://mailinglists.scilab.org/XCos
>> -custom-block-error-Undefined-Function-Type-tp4032554.html
>> Sent from the Scilab users - Mailing Lists Archives mailing list
>> archive at Nabble.com.
>> _______________________________________________
>> users mailing list
>>
> users at .scilab
>> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at .scilab
> http://lists.scilab.org/mailman/listinfo/users
--
View this message in context: http://mailinglists.scilab.org/XCos-custom-block-error-Undefined-Function-Type-tp4032554p4032567.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list