Getting 'empty' Compiled Port Data Types
이전 댓글 표시
I'm trying to write a script to get datatypes of an inport and a outport of a subsytem/block. When I run following command:
get_param(port_handle,'CompiledPortDataType')
an empty array/structure is returned. Model is compiled before running this command. 'CompiledPortDataDimensions' also returns an empty results.
댓글 수: 1
Paul
2023년 7월 4일
If you do get this sorted out, please post the solution either here and/or in the linked question.
채택된 답변
추가 답변 (1개)
Run the model once (insted of just compiling) and check if model generates any data from ports and call or run the command
get_param(port_handle,'CompiledPortDataType')
Possibly no data might have been generated by model
댓글 수: 4
VBBV
2023년 7월 3일
If you have run the model and the problem still persists,in that case check whether the I/O ports are connected to model correctly
Siddhesh Wani
2023년 7월 4일
Ok. Test your model with valid inputs or input range. Before running your model, check simulation settings also e.g. time scale for simulation etc. A reasonable time duration. If the same problem exists then verify for any model inconsistencies.
BTW , how is the data being read from I/O ports ? Do you use read or some other functions to read data from ports ?
Siddhesh Wani
2023년 7월 4일
카테고리
도움말 센터 및 File Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!