Change default data type of a simulink block
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
Is there any way to change a simulink block's default data type?
In consant, its default is "Inherit: Inherit from 'constant value'". I want it to be chosen as uint16 every time I insert a block to the model.
Here's the drop down menu that I mentioned:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1310870/image.png)
댓글 수: 0
답변 (1개)
Dinesh
2023년 3월 7일
편집: Dinesh
2023년 3월 7일
Hi Bora.
For most blocks, their output data type is inherited from their inputs.
As I can see, the "Block Parameters" tab for the "Constant" block is not editable when when we choose it by right-clicking directly from the "Library Browser" window.
The output data type is only chosen based on the input provided.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!