fixdt() and RTW-EC
2 次查看(过去 30 天)
显示 更早的评论
Hi,
If I'm setting the data type of an output port to say fixdt(0,32,0.1,10) this will not result in the corresponding value output scaling in the generated code (RTW-EC). Is this the correct behavior or am I doing something wrong?
Many thanks in advance!
0 个评论
回答(1 个)
Kaustubha Govind
2012-3-13
Does inserting a Data Type Conversion block in front of the output port help? You need to configure the Data Type Conversion block to output the desired type.
2 个评论
Kaustubha Govind
2012-3-14
Turn on "Format>Port/Signal Displays>Port Data Types" from your model. What is the displayed datatype going into the outport?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fixed Point 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!