| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Signal Attributes

The Signal Conversion block converts a signal from one type to another. Use the Output parameter to select the type of conversion to perform.
The Signal Conversion block accepts virtual or nonvirtual signals of any data type.

Contiguous copy
Converts a muxed signal, whose elements occupy discontiguous areas of memory, to a vector signal, whose elements occupy contiguous areas of memory. The block does this by allocating a contiguous area of memory for the elements of the muxed signal and copying the values from the discontiguous areas (represented by the block's input) to the contiguous areas (represented by the block's output) at each time step. You can also use this setting to connect a block with a constant sample time to an output port of an enabled subsystem. For more information, see Using Blocks with Constant Sample Times in Enabled Subsystems. For an example involving Real-Time Workshop software, see Reusable Code and Referenced Models.
Bus copy
Outputs a copy of the bus connected to the block's input. This setting is useful when passing a bus signal whose components have different data types to a nonvirtual Inport block in an Atomic Subsystem. See Using Composite Signals in the Simulink documentation for more information.
Virtual bus
Converts a nonvirtual bus to a virtual bus. In general, virtual buses can save memory where nonvirtual buses are not required.
Nonvirtual bus
Converts a virtual bus to a nonvirtual bus as in the following example. This setting is useful when passing a virtual bus signal to a modeling construct that requires a nonvirtual bus, such as a Model block.

Note The virtual bus to be converted to a nonvirtual bus must be defined by a bus object, for example, an instance of Simulink.Bus class. See the Bus Creator block for more information. |
This option is available only for Contiguous copy conversion. If the elements of the input signal occupy contiguous areas of memory, Simulink software eliminates the block from the compiled model as an optimization. That action does not occur when you select this check box. For more information, see Block reduction in the Simulink documentation.
Sample Time | Inherited from the driving block |
Scalar Expansion | n/a |
Dimensionalized | n/a |
Multidimensionalized | Yes |
Zero-Crossing Detection | No |
![]() | Signal Builder | Signal Generator | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |