Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In the SCADE Simulink Gateway, what is the difference between an ArityType Rule and a Type Rule?

0
Posted

In the SCADE Simulink Gateway, what is the difference between an ArityType Rule and a Type Rule?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.