modelExpression

User defined function integer function

Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntNinOperation (Partial interface of a generic n-input integer math operation).

Information

Description

Model of a generic function of n integers.
The output ( y ) is the result of the generic function f(.) of the inputs ( u(:) ) signals.

    y = f(u[:])
  

Depending on the value of the sampling time (Ts), the model has two different behaviours:

  • Ts > 0
    it behaves as a discrete time system,
  • Ts <= 0
    it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)

Parameters

TypeNameDefaultDescription
RealTs (from IntNinOperation)0.1sampling time
IntegernInput (from IntNinOperation)1number of inputs
Stringfname"F name"String that represent the name of the implemented function

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInput[nInput]u (from IntNinOperation)input vector
Modelica.Blocks.Interfaces.IntegerOutputy (from IntNinOperation)output

Contents

NameDescription
fgeneric integer function

Revisions

Industrial Control Systems (v 1.0.0) : April-May 2012
List of revisions:

  • 11 May 2012 (author: Marco Bonvini)

Main Authors:
Marco Bonvini; <bonvini@elet.polimi.it>
Alberto Leva <leva@elet.polimi.it>
Politecnico di Milano
Dipartimento di Elettronica e Informazione
Via Ponzio 34/5
20133 Milano - ITALIA -
Copyright:
Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.