How do I use a Bus in conjunction with a matlab function block in Simulink?
I have a simulink file where i have a "Matlab Function Block" that needs to get a bus of parameters in input. My problem is that even after changing the variable type of the input to "Bus" and also changing the object name to the one i have given to the bus of parameters in question i still get the following error:
Expression ‘Bus1’ for type of data "Parameters" did not evaluate to a valid type.
Caused by: invalid setting in ‘MATLAB Function’ for parameter ‘Datatype’
Unrecognised function or variable ‘Bus1’. Variable ‘Bus1’ does not exist
Any idea of how i can solve he problem without using a selector before the function?
Thanks in advanceI have a simulink file where i have a "Matlab Function Block" that needs to get a bus of parameters in input. My problem is that even after changing the variable type of the input to "Bus" and also changing the object name to the one i have given to the bus of parameters in question i still get the following error:
Expression ‘Bus1’ for type of data "Parameters" did not evaluate to a valid type.
Caused by: invalid setting in ‘MATLAB Function’ for parameter ‘Datatype’
Unrecognised function or variable ‘Bus1’. Variable ‘Bus1’ does not exist
Any idea of how i can solve he problem without using a selector before the function?
Thanks in advance I have a simulink file where i have a "Matlab Function Block" that needs to get a bus of parameters in input. My problem is that even after changing the variable type of the input to "Bus" and also changing the object name to the one i have given to the bus of parameters in question i still get the following error:
Expression ‘Bus1’ for type of data "Parameters" did not evaluate to a valid type.
Caused by: invalid setting in ‘MATLAB Function’ for parameter ‘Datatype’
Unrecognised function or variable ‘Bus1’. Variable ‘Bus1’ does not exist
Any idea of how i can solve he problem without using a selector before the function?
Thanks in advance bus, matlab function MATLAB Answers — New Questions