Tool/software: TI C/C++ Compiler
Hi,
I have a simulink model to add two floating point numbers. This model is built and code is generated (using Simulink coder) to be run in TwinCAT 3.1. Now the floating point numbers are transmitted to the TwinCAT from my TI DSP. In my DSP I store these values as IQ24 format numbers.
At first I tried to use the c2000 simulink function blocks but failed to generate code. Now I realise that these blocks can be generated only to be run on the DSP itself. Hence the code generation failing makes sense.
Now I am wondering how I can transmit float values to my TwinCAT3.1 environment from my TI DSP. I am open to converting them at the DSP side or at the TwinCAT side (Simulink).
I tried converting an IQ number to float value in the DSP but it does not seem to appear in the TwinCAT environment as a float value. Am I doing something wrong or by default I cannot transmit float values from a fixed point IQ DSP???
Or is there another method I could use in the Simulink model itself to convert IQ numbers to float AND still be able to generate that model into TwinCAT environment??
Any help in this direction is useful .
Thank you so much :)