I think this should be easy, but it isn't for some reason. What am I missing?
I want to pass a character variable from one block to the next.
busname.busobject = 'characterVariable';
I've also tried declaring 'char' as extrinsic and using:
busname.busobject = char('characterVariable');
but I keep getting this error:
Expression 'busname' for type of data 'busname' (#71) did not evaluate to a valid type.
Error evaluating properties of Simulink.Bus object 'busname' in workspace 'base' (used by block 'SimulinkModelName/MATLAB Function Block Name/ SFunction ').
DataType 'char' did not resolve to a valid data type.
Any help is appreciated.