1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) DIGITEO - 2010-2010 - Clément DAVID <clement.david@scilab.org>
4 // This file is distributed under the same license as the Scilab package.
5 // <-- ENGLISH IMPOSED -->
6 // <-- TEST WITH XCOS -->
8 // <-- Short Description -->
9 // Check the API of the Xcos hooks, see SEP_066_Xcos_hooks.odt
13 function continueSimulation = pre_xcos_simulate(scs_m, needcompile)
16 status = [status 'pre_called'];
18 function post_xcos_simulate(%cpr, scs_m, needcompile)
21 status = [status 'post_called'];
23 assert_checktrue(importXcosDiagram(SCI + "/modules/xcos/demos/Simple_Demo.xcos"));
24 xcos_simulate(scs_m, 4);
26 Error occurred in pre_xcos_simulate: Cancelling simulation.
27 at line 4 of function pre_xcos_simulate
28 assert_checkequal(status, [])