1
// =============================================================================
2
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3
// Copyright (C) 2012 - Scilab Enterprises - Clément DAVID
5
// This file is distributed under the same license as the Scilab package.
6
// =============================================================================
7
// <-- TEST WITH XCOS -->
9
// <-- Non-regression test for bug 11554 -->
11
// <-- Bugzilla URL -->
12
// http://bugzilla.scilab.org/show_bug.cgi?id=11554
14
// <-- Short Description -->
15
// quit report an error after loading xcos_toolbox_skeleton.
16
// avoid building the xcos toolbox skeleton by calling xcosPalAdd(...)
18
function [x,y,typ]=MY_BLOCK(job,arg1,arg2)
25
model.sim=list('my_block',4)
28
x=standard_define([3 2],model,exprs,gr_i)
31
block_img = SCI + "/modules/xcos/images/blocks/RAMP.svg";
32
pal_block_img = SCI + "/modules/xcos/images/palettes/RAMP.png";
33
pal = xcosPal("My palette");
34
pal = xcosPalAddBlock(pal, 'MY_BLOCK', pal_block_img, block_img);
37
exec('SCI/etc/scilab.quit',-1);quit;