Programmatically get bus data type of In Bus Element block
I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything.I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything. I’m looking to get the bus data type used in ‘In bus element’ blocks in Matlab environment, e.g. using the ‘get_param()’ function or similar. The In Bus Element selects 1 element from the bus, but I’m not interested in the type of the element, but I need the bus type (name) of the associated parent bus.
What I’m trying to do is to list the root level ports and associated bus data types of a given model that uses only In Bus Element and Out Bus Element blocks with specified bus data types.
The bus element ports are mapped to an Autosar interface, I’m not sure if that changes anything. simulink, matlab MATLAB Answers — New Questions