summaryrefslogtreecommitdiffstats
path: root/scilab/modules/xcos/etc/simulinkImportBlocks.xml
blob: 837242e0c82bf77fa9a33752a6c3578c9e4e24de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<blocks>
<!--Template-->
  <block sim="string" xcos="string" description="string">
    <!--Zero or more repetitions:-->
    <string sim="string" xcos="string" description="string">
      <!--1 or more repetitions:-->
      <parMap simVal="string" xcosVal="string"/>
    </string>
    <!--Zero or more repetitions:-->
    <integer sim="string" xcos="string" description="string">
      <!--1 or more repetitions:-->
      <parMap simVal="100" xcosVal="100"/>
    </integer>
    <!--Zero or more repetitions:-->
    <simple sim="string" xcos="string" description="string"/>
  </block>
<!-- Continuous Library Block Parameters -->
	  <!-- 	Derivative Block Compatibility Pattern -->
	  <block sim="Derivative" xcos="DERIV" description="
		LinearizePole - not available;
		">
	  </block>
	  <!-- 	Integrator Block Compatibility Pattern -->
	  <block sim="Integrator" xcos="INTEGRAL_m" description="
		ExternalReset - not available;
		InitialConditionSource - external?internal (?);
		LimitOutput - switched on by default;
		ShowSaturationPort - N/A;
		ShowStatePort - N/A;
		AbsoluteTolerance- N/A;
		IgnoreLimit - N/A;
		ContinuousStateAttributes - N/A;
		">
	    <!--FIXME: Can be complex! -->
	    <integer sim="InitialCondition" xcos="Initial Condition" description="">
	      <parMap simVal="1" xcosVal="1"/>
	    </integer>
	    <integer sim="UpperSaturationLimit" xcos="Upper limit" description="">
	      <parMap simVal="1" xcosVal="1"/>
	    </integer>
	    <!--FIXME: Can be complex! -->
	    <integer sim="LowerSaturationLimit" xcos="Lower limit" description="">
	      <parMap simVal="1" xcosVal="1"/>
	    </integer>
	    <!--FIXME: Can be complex! -->
	    <str2int sim="ZeroCross" xcos="zero_crossing" description="Enable zero-crossing detection">
	      <parMap simVal="off" xcosVal="0"/>
	      <parMap simVal="on" xcosVal="1"/>
	    </str2int>
	    <str2int sim="ExternalReset" xcos="With re-initialization" description="">
	      <!-- TODO: {'none'} | 'rising' | 'falling' | 'either' | 'level' | 'level hold' -->
	      <parMap simVal="none" xcosVal="0"/>
	    </str2int>
	    <str2int sim="LimitOutput" xcos="With saturation" description="">
	      <parMap simVal="off" xcosVal="0"/>
	      <parMap simVal="on" xcosVal="1"/>
	    </str2int>
	  </block>
<!-- Math Operations Library Block Parameters -->
  <!-- A -->
  	  <!--Absolute Value Block Compatibility Pattern:-->
	  <block sim="Abs" xcos="ABSOLUTE_VALUE" description="
		SampleTime - in xcos always inherited;
		OutMax - output limiter not available;
		OutDataTypeStr - always inherited(?);
		RndMeth - rounding mode not available(?);
		SaturateOnIntegerOverflow - always saturated(?);
		">
	    <!-- TODO: ZeroCross for the second time, create general parameter -->
	    <str2int sim="ZeroCross" xcos="zero_crossing" description="Enable zero-crossing detection">
	      <parMap simVal="off" xcosVal="0"/>
	      <parMap simVal="on" xcosVal="1"/>
	    </str2int>
	  </block>
	  <!--Add Block Compatibility Pattern:-->
	  <block sim="Add" xcos="SUMMATION" description="
		IconShape - not available;
		CollapseMode - not available;
		CollapseDim - not available;
		SampleTime - always inherited;
		AccumDataTypeStr - always inherited;
		OutMin, OutMax - limiters of in/out values not available;
		OutputDataType - always inherited;
		LockScale - (?);
		RndMeth - integer rounding method, unneccesery as output is inherited from
		">
	    <!-- TODO: unavailable parameter of data type, should be inherited from inputs some special handling needed -->
	    <simple sim="unavailable" xcos="Datatype" description="should be inherited from inputs"/>
	    <!-- TODO: '++-' to [1 , 1 , -1], some special handling needed -->
	    <str2int sim="Inputs" xcos="Number of inputs or sign vector" description="String with +/- to vec [1/-1]">
	      <parMap simVal="+" xcosVal="1"/>
	      <parMap simVal="-" xcosVal="-1"/>
	    </str2int>
	    <str2int sim=" SaturateOnIntegerOverflow" xcos="Do on Overflow" description="">
	      <parMap simVal="on" xcosVal="1"/>
	      <parMap simVal="off" xcosVal="0"/>
	    </str2int>
	  </block>
	  <!--Algebraic Constraint Compatibility Pattern:-->
	  <block sim="Algebraic Constraint" xcos="CONSTRAINT_c" description="no description">
	    <simple sim="z0" xcos="initial guess values" description="no description"/>
	  </block>
	  <!--Assignment Compatibility Pattern:-->
	  <block sim="Assignment" xcos="Assignment" description="no description">
	    <integer sim="NumberOfDimensions" xcos="Number of output dimensions" description="">
	      <parMap simVal="1" xcosVal="1"/>
	    </integer>
	    <str2int sim="IndexMode" xcos="Index Base" description="">
	      <parMap simVal="Zero-based" xcosVal="0"/>
	      <parMap simVal="One-based" xcosVal="1"/>
	    </str2int>
	    <str2int sim="IndexOptionArray" xcos="Index Option" description="">
	      <parMap simVal="Zero-based" xcosVal="0"/>
	      <parMap simVal="One-based" xcosVal="1"/>
	    </str2int>
	    <!--TODO: IndexOptions: See IndexOptionArray parameter for more information.
			 'Assign all' | {'Index vector (dialog)'} | 'Index vector (port)' | 'Starting index (dialog)' | 'Starting index (port)'	
		FIXME: Is it available only in scicos?	
            -->
	  </block>
  <!-- B -->

<!-- Sources Library Block Parameters -->
  <!-- C -->
	  <!-- Constant Block Compatibility Pattern -->
	  <block sim="Constant" xcos="CONST_m" description="no description">
	    <simple sim="Value" xcos="Constant" description="no description"/>
	  </block>

</blocks>