How do you access the datatype of Bus Element Ports in MATLAB
I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports?I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports? I have a model that outputs a Bus of type ‘TestBus’. The Bus is comprised of three Doubles, which I define and output using ‘Bus Element Outports’.
I would like to access the output datatype of my entire model (which is a ‘TestBus’). However, when I access the datatype of the Bus Element Outports, I receive ‘Double’ instead of ‘TestBus’.
For instance, the following code returns ‘Double’ on my compiled model:
get(<Bus Element Handle>,’CompiledPortDataTypes’).Inport{1}; % Returns Double, should return TestBus
How can I access the Bus output datatype of my Bus Element Ports? buselement, ports, compiledportdatatypes, outdatatypestr MATLAB Answers — New Questions