In the SCADE Simulink Gateway, what is the difference between an ArityType Rule and a Type Rule?
An ArityType rule includes information about both the arity (number of inputs and outputs) and data types of the inputs and outputs. A Type rule is similar to an ArityType rule, except that the arity of the block is not explicitly defined and does not need to exactly match the associated block. With a Type rule, SCADE will infer the arity of the block. Both ArityType and Type rules can be used with scalar or vector inputs and outputs. Type rules can operate on vectors if the operation can be applied to every element of the vector. The resulting node will be a SCADE textual node. See the example below for ArityType rules used to translate the Simulink Multiport Switch block. These rules are for a Multiport Switch that has two inputs signals and one output. The first input is a scalar of any type (denoted by the “*”), while the second input is a 2-, 3-, 4-, 5-, or 6-element vector of reals. The output data type is also a real.