The model has to be setup in 3 places in order to ensure that a bus structure is treated as a pass-through element.
- Ensure that the inport is set to NOT "Output as nonvirtual bus"
- Manually configure model interface per Combining I/O Arguments to have the outport to be combined with the inport as pointer arguments.
- Add a signal conversion block from virtual to nonvirtual before the bus assignment block.
This will create efficient C code where the C structure is passed in as a pointer and then modified without making any extra copies of the input bus structure.