I have a Bus input to the S-function. The Bus object has a specific name (myBusObj). The S-Function block has a Mask applied to it to allow users to specify the input Bus object as a string. In the Mask Editor, this input field has a type of "DataTypeStr". The provided data type is to be parsed from the S-Function parameter field and to be set as the data type of the input port of the S Function block. Also I want to be able to get the exact Bus object name from inside the S-function. I have tried with 'mxGetClassName', but I only get 'Simulink.Bus' as the returned Bus object name instead of 'myBusObj'.
MATLAB: How to get the exact Simulink.Bus object name inside the S-function that accept Bus input/output
simulink
Related Question
- Can I use a bus in MATLAB Function block where the bus output data type is inherited in Simulink 8.0 (R2012b)
- How to input and output Bus signals to and from an S-function created using the S-function builder in Simulink 7.3 (R2009a)
- Create a null bus from a bus definition
- Bus signals as Input to S-function
- “Virtual bus without a bus object is not supported by the Test Sequence block” error message using bus object
Best Answer