MATLAB: Virtual Bus as model input

inputsimulinkvirtual bus

Hi,
I am pretty sure that it is not possible, but since I am not an expert I ask anyway: Is it possible to have a virtual bus as an input to a model reference?
Currently when I have a bus selector connected to an in block there are no signals displayed that I could use. But technically since the model is referenced by another model simulink could resolve the signal names…
Is there a mechanism to do this?
Cheers, Frank.

Best Answer

I think you need to convert the virtual bus to a non-virtual bus to be able to input it to a referenced model. Right-click on your subsystem and select 'Convert to Model block' to use the subsystem-to-model reference conversion utility. The tool automatically creates a bus object for the input. The demo model sldemo_mdlref_conversion also illustrates this.