From c5d4993d5962c6e511c5cc05c9a5f37791589f49 Mon Sep 17 00:00:00 2001
From: Vladislav TRUBKIN
Date: Thu, 15 May 2014 12:02:27 +0200
Subject: [PATCH] Bug #13285 fixed  There was no appropriate example of the
syntax for scifunc_block_m GUI on the
help page.
ChangeId: I317278335f928d40def9832bea55c139dc4cc76e

scilab/CHANGES_5.5.X  3 ++
.../Userdefinedfunctions_pal/scifunc_block_m.xml  37 ++++++++++++
2 files changed, 26 insertions(+), 14 deletions()
diff git a/scilab/CHANGES_5.5.X b/scilab/CHANGES_5.5.X
index 13b5d4c..c2fb1a8 100644
 a/scilab/CHANGES_5.5.X
+++ b/scilab/CHANGES_5.5.X
@@ 42,6 +42,9 @@ Xcos Bug Fixes
* Bug #12751 fixed  cdummy_ entry point was not found when using Code Generation.
+* Bug #13285 fixed  There was no appropriate example of the syntax for scifunc_block_m GUI
+ on the help page.
+
* Bug #13385 fixed  TOWS_c and FROMWSB Xcos blocs needed better examples on how
to get or write a Scilab variable.
diff git a/scilab/modules/xcos/help/en_US/palettes/Userdefinedfunctions_pal/scifunc_block_m.xml b/scilab/modules/xcos/help/en_US/palettes/Userdefinedfunctions_pal/scifunc_block_m.xml
index d2a8780..7aa1a6c 100644
 a/scilab/modules/xcos/help/en_US/palettes/Userdefinedfunctions_pal/scifunc_block_m.xml
+++ b/scilab/modules/xcos/help/en_US/palettes/Userdefinedfunctions_pal/scifunc_block_m.xml
@@ 117,66 +117,75 @@
input ports sizes
 a scalar. Number of regular input ports
 Properties : Type 'vec' of size 1
+ a matrix. Number of regular input ports
+ Properties : Type 'mat' of size [1 2]
+ Example : [1,1] for one input of size 1x1; [1,1;2,3] for two inputs of size 1x1 and 2x3
output port sizes
 a scalar. Number of regular output ports
 Properties : Type 'vec' of size 1
+ a matrix. Number of regular output ports
+ Properties : Type 'mat' of size [2 2]
+ Example : [1,1] for one output of size 1x1; [1,1;2,3] for two outputs of size 1x1 and 2x3
input event ports sizes
 a scalar. Number of input event ports
+ a column vector. Number of input event ports
Properties : Type 'vec' of size 1
+ Example : [1] for one input event port; [1;1] for two input event ports
output events ports sizes
 a scalar. Number of output event ports
+ a column vector. Number of output event ports
Properties : Type 'vec' of size 1
+ Example : [1] for one output event port; [1;1] for two output event ports
initial continuous state
 a column vector.
+ a column vector.
Properties : Type 'vec' of size 1
+ Example : [0;0] for two initial continuous states
initial discrete state
 a column vector.
+ a column vector.
Properties : Type 'vec' of size 1
+ Example : [0;0] for two initial discrete states
System parameters vector

 a string: c or d (CBB or DBB ), other types are not supported.

+ a column vector.
Properties : Type 'vec' of size 1
+ Example : [0.5;1.5;2.5] for three parameters
initial firing vector
 vector. Size of this vector corresponds to the number of event outputs. The value of the ith entry specifies the time of the preprogrammed event firing on the ith output event port. If less than zero, no event is preprogrammed.
 Properties : Type 'vec' of size sum(%4)
+ a column vector. Size of this vector corresponds to the number of event outputs. The value of the ith entry specifies the time of the preprogrammed event firing on the ith output event port. If less than zero, no event is preprogrammed.
+ Properties : Type 'vec' of size sum(Number of output event ports)
+ Example : [1;2] 1 and 2 are the preprogrammed events firing that correspond to the first output event port and to the second output event port respectively
is block always active
 other dialogues are opened consecutively where used may input Scilab code associated with the computations needed (block initialization, outputs, continuous and discrete state, output events date, block ending)
Properties : Type 'vec' of size 1
+ Example : 1 the block is always active; 0 the block is not always active
+
+
+ Other dialogues are opened consecutively where the user may write Scilab code associated with the computations needed (block initialization, outputs, continuous and discrete state, output events date, block ending).

1.7.9.5