fixdt() and RTW-EC
    6 views (last 30 days)
  
       Show older comments
    
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 Comments
Answers (1)
  Kaustubha Govind
    
      
 on 13 Mar 2012
        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 Comments
  Kaustubha Govind
    
      
 on 14 Mar 2012
				Turn on "Format>Port/Signal Displays>Port Data Types" from your model. What is the displayed datatype going into the outport?
See Also
Categories
				Find more on Fixed Point in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
