Viewing IQ Math variables in Scope of Matlab Simulink
5 views (last 30 days)
Show older comments
SACHIN DEVASSY
on 2 Jul 2019
Commented: Venkatesh Chilapur
on 4 Jul 2019
Hi,
I am trying to observe the ADC result of 28027 in scope of Matlab-Simulink. The output of the ADC is coming in integer format. But I would like to see it in real word value . .ie say if output is 4096 it should show value of 3.0 in the scope of Matlab Simulink. I have used data conversion block of Matlab Simulink with setting of output data type as fixdt(1, 32, 19). However, the values seen are the integer type.
0 Comments
Accepted Answer
Venkatesh Chilapur
on 2 Jul 2019
Hi Sachin,
Please find the attached model which is created in 2019a version of MATLAB.
We have used fixdt(1, 32, 19) data type for the math.
Please let us know if this helps.
Regards,
Venkatesh C
4 Comments
Venkatesh Chilapur
on 4 Jul 2019
Hi Sachin,
Yes, the IQ Math libraries are optimized to be computational efficeint for fixed point data type.
You can enable the CRL for the same by setting the same TI C28x or TI C28x (ISO) CRL under Code Generation -> Interface Tab.
![Capture11.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227464/Capture11.jpeg)
![Capture12.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227465/Capture12.jpeg)
![Capture13.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227466/Capture13.jpeg)
HTH,
Regards,
Venkatesh C
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!