Main Content

Modify Sample Times for Nonvirtual Buses

不像虚拟巴士,可以结合信号that have different sample times, all of the signals in a nonvirtual bus must have the same sample time.

To group signals with different sample times in a nonvirtual bus, make the sample times of the input signals the same by insertingRate Transitionblocks.

Suppose a model creates a nonvirtual bus using aBus Creatorblock. To standardize the sample time of the input signals, the model uses threeRate Transitionblocks before theBus Creatorblock.

Suppose another model converts a virtual bus to a nonvirtual bus using a root-levelOutportblock. To standardize the sample time of the elements of the virtual bus, the model uses a singleRate Transitionblock before theOutportblock.

Alternatively, specify the same sample time at each block that generates an element of the bus.

Tip

To output a multirate virtual bus from a model, useOut Bus Elementblocks.

See Also

Blocks

Related Topics