Difference b/w virtual and non virtual bus?

조회 수: 140 (최근 30일)
Sukumar Paul
Sukumar Paul 2012년 4월 26일
편집: Rena Berman 2022년 4월 1일
hey, can anyone explain me the difference b/w virtual and non virtual bus? if possible, give a real life example for better understanding.

답변 (2개)

Guy Rouleau
Guy Rouleau 2012년 4월 26일
A virtual bus is just a visual representation in the Simulink editor. It makes your model look nicer and easier to manage when you have many signals. It does not affect how the signal is stored in memory.
With a nonvirtual bus, the data is stored as a structure in a contiguous piece of memory. Because of that, nonvirtual have more constraints.
Consider nonvirtual bus only if you have code generation constraints requiring it.
  댓글 수: 1
Aditya gandi
Aditya gandi 2017년 6월 8일
Can you provide any real life examples to support your statements?

댓글을 달려면 로그인하십시오.


Kaustubha Govind
Kaustubha Govind 2012년 4월 26일
편집: Rena Berman 2022년 4월 1일
A bus signal is simple a structure signal containing numeric elements. When a bus signal has a Simulink.Bus object associated with it, it becomes a non-virtual bus. See the blog post Nonvirtual Bus Signals for a more detailed explanation. The documentation on Types of Composite Signals also is a good reference.
AFAIK, there is no "real world" example - the difference is only in how Simulink treats the signals.
  댓글 수: 2
Guy Rouleau
Guy Rouleau 2012년 4월 26일
A little precision... virtual buses can have a an associated bus object. This is not required, but can be be used for validation or initialization.
Non-virtual buses need a bus object.
Kaustubha Govind
Kaustubha Govind 2012년 4월 27일
Ah! There's something new I learned today. :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Composite Interfaces에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by