. |
Conversions Integer to Double, Double to Integer, Float to Double, Double to FloatMechaware API Documentation > Conversion
OverviewOverviewThe Conversion Blocks, Integer to Double, Double to Integer, Float to Double, and Double to Float perform the corresponding data conversions. The configuration values for this block are as follows:
Matlab/SimulinkSimulink InterfaceDouble to Integer: Input is double precision (64-bit) floating point value, output is 32-bit integer value. Double to Float: Input is double precision (64-bit) floating point value, output is single precision (32-bit) floating point value. Integer to Double: Input is 32-bit integer value, output is double precision (64-bit) floating point value. Float to Double: Input is single precision (32-bit) floating point value, output is double precision (64-bit) floating point value. The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. See User Data Storage for details. The block's update schedule is determined by the Subsample Code (See Subsampling). The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model:
C++ APIDTOIBlock, DTOFBlock, ITODBlock, FTODBlockDeclaration Public Method
Description The Conversion Blocks, Integer to Double, Double to Integer, Float to Double, and Double to Float perform the corresponding data conversions. Double to Integer: Input is double precision (64-bit) floating point value, output is 32-bit integer value. Double to Float: Input is double precision (64-bit) floating point value, output is single precision (32-bit) floating point value. Integer to Double: Input is 32-bit integer value, output is double precision (64-bit) floating point value. Float to Double: Input is single precision (32-bit) floating point value, output is double precision (64-bit) floating point value. These blocks have no configurable parameters. Methods |
| | Copyright © 2001-2012 Motion Engineering |