Viewing IQ Math variables in Scope of Matlab Simulink

조회 수: 7 (최근 30일)
SACHIN DEVASSY
SACHIN DEVASSY 2019년 7월 2일
댓글: Venkatesh Chilapur 2019년 7월 4일
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.

채택된 답변

Venkatesh Chilapur
Venkatesh Chilapur 2019년 7월 2일
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
SACHIN DEVASSY
SACHIN DEVASSY 2019년 7월 4일
Thankyou Venkatesh. Its working.
Is the computational budern same or reduced if we use TI IQ math libraries for multiplication (_IQmpy) and division (_IQdiv) instead of direct multiplication and division (all the numbers being in fixdt(1,32,19).
Venkatesh Chilapur
Venkatesh Chilapur 2019년 7월 4일
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
Capture12.JPG
Capture13.JPG
HTH,
Regards,
Venkatesh C

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by