Set Data Type of Inport Block
显示 更早的评论
Hi,
I want to set the data type of an inport Block with specification (Type:Num between[Min Max[). but I don't find a way to do it. Thank you for the help.
Nedra.
回答(1 个)
Nobel Mondal
2015-5-30
0 个投票
You can double click on the block and change the following values:

4 个评论
Nobel Mondal
2015-5-30
Also you can set it from the command prompt like this -
>> set_param('myModel/In1', 'OutDataTypeStr', 'double',...
'OutMin', '0.00', 'OutMax', '100.0');
Nedra Ebdelli
2015-5-30
Nedra Ebdelli
2015-6-2
Sebastian Castro
2015-6-2
From another one of your questions, I noticed that you are using Simulink Design Verifier. Wanted to let you know that the Min and Max specifications in the Inport block
- Do not limit the signal value in any way -- you want to use a Saturation block if you need to physically limit values.
- Are not used by Simulink Design Verifier for analysis. If you want to specify bounded vs. unbounded ranges, use Proof Assumption, Proof Objective, Test Condition , or Test Objective block (depending on whether you're doing property proving or test generation).
- Sebastian
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Design Verifier 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!