CONVERT Convertion de type de données
This block converts an input signal of any data type to a specified data type. The input can be real, complex or integer. When the output is an integer and when overflow occurs the block three different forms of results :
1- A normal non saturated result.
2- A saturated result.
3- An error message warning the user about the overflow..
The user can select one of these three forms by setting the "DO ON OVERFLOW" field to 0,1 or 2.
- input type (-1=inherit 1=double 3=int32 4=int16 5=int8 ...)
It indicates the input data type, it can be a double or an integer.
Propriétés : Type 'vec' de taille 1.
- output type (-2=inherit 1=double 3=int32 4=int16 5=int8 ...)
It indicates the output data type, it can be a double or an integer.
Propriétés : Type 'vec' de taille 1.
- Do on Overflow(0=Nothing 1=Saturate 2=Error)
When this parameter is set to zero the result is similar to a normal multiplication of two integer matrix. When it is set to 1, on overflow the block saturate the result. When it is set to 2, on overflow an error message box appears.
Propriétés : Type 'vec' de taille 1.
- toujours actif: non
- direct-feedthrough: oui
- détection de passage à zéro: non
- mode: non
- entrée régulières:
- port 1 : taille [-1,-2] / type 1
- sorties régulières:
- port 1 : taille [-1,-2] / type 3
- nombre des entrées évènementielles: 0
- nombre des sorties évènementielles: 0
- possède un état continu: non
- possède un état discret: non
- possède un état objet: non
- nom de la fonction de calcul: convert
- SCI/macros/scicos_blocks/IntegerOp/CONVERT.sci [voir code]
Fady NASSIF INRIA