1 // ============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2009 - DIGITEO
4 // Copyright (C) 2012 - Scilab Enterprises - Clement DAVID
5 // Copyright (C) 2017 - ESI Group - Clement DAVID
7 // This file is distributed under the same license as the Scilab package.
8 // ============================================================================
10 // <-- TEST WITH XCOS -->
11 // <-- INTERACTIVE TEST -->
13 // we launch xcos then libs should be loaded
16 // we launch xcos with an xcos demo file
17 xcos(SCI + "/modules/xcos/demos/Simple_Demo.zcos");
19 // we launch xcos with an xcos demo file with full path resolution
20 xcos("SCI/modules/xcos/demos/Simple_Demo.zcos");
22 // we launch xcos with cosf file
23 xcos(SCI + "/modules/scicos/palettes/Branching.cosf");
25 // we launch xcos with a scs_m instance
26 scs_m = scicos_diagram();
27 scs_m.objs($+1) = BIGSOM_f("define");
30 // we launch xcos with a full scs_m
31 importXcosDiagram(SCI+"/modules/xcos/demos/Discrete-KalmanFilter.zcos");
34 // we launch xcos with a scs_m subsystem
35 assert_checkequal(typeof(scs_m.objs(1).model.rpar), "diagram");
36 xcos(scs_m.objs(1).model.rpar);