From feeb77954abf1af207db91158019408cb5e0deef Mon Sep 17 00:00:00 2001 From: Paul Bignier Date: Mon, 20 Jul 2015 17:27:33 +0200 Subject: [PATCH] Scicos_blocks macros: fix SELF_SWITCH for Xcos 6 * Fixed trying to link to an object that doesn't exist yet in the diagram by 'pin', 'pout', 'pein' & 'peout' If you want to do that, use 'model' instead of 'graphics' It was not necessary anyway because the links do it... Change-Id: I2e012825fe12d63208d539d40986555fb85e9f94 --- .../scicos_blocks/macros/Branching/SELF_SWITCH.sci | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scilab/modules/scicos_blocks/macros/Branching/SELF_SWITCH.sci b/scilab/modules/scicos_blocks/macros/Branching/SELF_SWITCH.sci index 52af071..dc0be49 100644 --- a/scilab/modules/scicos_blocks/macros/Branching/SELF_SWITCH.sci +++ b/scilab/modules/scicos_blocks/macros/Branching/SELF_SWITCH.sci @@ -14,20 +14,15 @@ function [x,y,typ]=SELF_SWITCH(job,arg1,arg2) diagram = scicos_diagram(); // Input forward diagram.objs(1) = IN_f("define"); - diagram.objs(1).graphics.pout = 5; // Output's forward diagram.objs(2)=OUT_f("define"); - diagram.objs(2).graphics.pin = 7; diagram.objs(3)=CONST_m("define"); - diagram.objs(3).graphics.pout = 6; diagram.objs(3).graphics.exprs = "0"; diagram.objs(3).model.rpar = 0; diagram.objs(4)=SWITCH_f("define"); - diagram.objs(4).graphics.pin = [5 6] - diagram.objs(4).graphics.pout = 7 if stateOpen == %t diagram.objs(4).model.ipar = 1; diagram.objs(4).graphics.exprs = ["2";"2"]; -- 1.7.9.5