This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am using TMS320F28035.
I want to implement a sinusoidal reference in CLA, so I checked the CLA_sine function example given in ControlSUITE --> Libraries --> Math Library-CLA.
The problem is that, in the example, the results generated by the CLAsin function are in really big numbers (maybe because the data format).
My question is, how do I convert those big values to the normal sine function result (in the range of -1 to 1) that I can use to build a sinusoidal reference?
Thank you,
Frank
Frank, The example checks for the hex value of the result but the results should be interpreted as float and it will be in the range of [-1,1]. If you place the result in the watch window and change the setting to float you will see the right values
Hi Vishal,
Thanks for your reply.
I did what you suggested, placed the result in the Watch and changed the setting to float. But they are still big values.
I am not sure whether I didn't do it correctly or I didn't understand it.
Here is the screenshot of the result:
Hi Frank, I made a mistake in my earlier post. the result is a union structure with two parts i32 and f32.
The f32 component is the float value, the correct value, the i32 just shows the hex representation of the floating point number, so please refer to the f32 component only.