Designing Your Model: Model-Code Correspondence : Fixed-Point Variable Support : Specifying Fixed-Point Variables

Specifying Fixed-Point Variables

To specify fixed-point variables in the Code Generator:

1.
Select Options > Settings > Target Properties from the MicroC Code Generator window.
2.
Select the option Use Fixed Point variables for “Real”.
3.
Select the default Word Size (8/[16]/32) and LSB= 2^- (0,1,2,..n).