[Scilab-Dev] Writing test diagrams for xcos blocks

Sumeet sumeetsk at gmail.com
Tue Jun 12 13:42:10 CEST 2012


Thanks Clément! That helped.

On Tue, Jun 12, 2012 at 11:36 AM, Clément DAVID <
clement.david at scilab-enterprises.com> wrote:

> Hi,
>
> Take a look at xcos tests :), we use importXcosDiagram and xcos_simulate
> with diagrams containing a "to workspace" block.
>
> Then we check against reference values using the assert functions.
>
> --
> Clément
>
> Le 11/06/2012 21:26, Sumeet a écrit :
>
>> I'm developing a signal processing blockset for xcos. For each block, I
>> am creating a test diagram in parallel. I've attached a screenshot of my
>> test diagram.
>>
>> As shown in the diagram, I send the matrix output by the block to the
>> workspace, and write notes on the diagram stating the desired values in
>> the matrices. However, this is cumbersome since it requires manual
>> verification by the user. Is there something equivalent to an assert
>> statement in xcos, that lets the user verify whether the block works
>> correctly?
>>
>> Any creative ideas?
>>
>> Sumeet.
>>
>>
>> --
>> To unsubscribe from this mailing-list, please send an empty mail to
>> dev-unsubscribe at lists.scilab.**org <dev-unsubscribe at lists.scilab.org>
>> To check the archives of this mailing list, see
>> http://mailinglists.scilab.**org/ <http://mailinglists.scilab.org/>
>>
>
>
> --
> Clément DAVID
> Scilab Enterprises
> skype://clement_david_scilab
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> dev-unsubscribe at lists.scilab.**org <dev-unsubscribe at lists.scilab.org>
> To check the archives of this mailing list, see
> http://mailinglists.scilab.**org/ <http://mailinglists.scilab.org/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20120612/f32298b9/attachment.htm>


More information about the dev mailing list