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.
Hello everyone,
I am trying to use the CLA of the mentioned Launchpad, using Matlab's Embedded Coder.
I want to build up from the example of in which a LED blinks at 1 Hz.
ch.mathworks.com/.../using-the-control-law-accelerator-cla.html:1230:0]
Yet, the trigger of the CLA routine of this example is software based, and I would like to make it PWM based.
To this end, I added ePWM9, which generates and interruption. Then, I the CLA setting to be triggered by ePWM9.
When I build this routine, I get the error ' Code generation information file does not exist. '. In the compilation report, I see an error saying "CLA_exp5_DWork" is undefined".
Could someone be gentle enough to help me ? Has something been defined wrongly ? It would indeed be very helpful if someone could modify the model proposed by Matlab so that it runs on an PWM-based CLA interrupt.
There is a more complex example at the matlab tutorials I am trying to use, but it is based on another microprocessor and motors.
Thank you very much,
Patricio
Patricio,
We are checking with MathWorks team on this issue. We will get back to you later today or tomorrow.
Patricio,
I suspect that the Class of the simulink parameter Cla_out might not be updated.
It can be updated by following the below steps:
Goto MODELLING tab and open the Data Object Wizard.
If the Class of the parameter is shown as Simulink.Signal, it needs to be changed to tic2000demospkg.Signal by following the below steps:
1. Click on Change Class tab and select customize class lists.
2. Under Signal classes, select tic2000demospkg.Signal and click ok.
3. Now, select the newly added class, tic2000demospkg.Signal for the object Cla_out.
Now, Under Data Stores tab under Code Mappings – C window, ensure that the storage class for Cla_out is updated to Cla1ToCpuMsgRAM as shown below:
Hope this helps. In case if the issue is not resolved, it would be best for you to get in touch with our support channel. When we have a support ticket, our internal process enables us to involve right people on this issue and we will immediately get in touch with you to understand the case in more detailed way.
Please connect to us at:
https://www.mathworks.com/support.html
Best Regards,
Ram Alla | MathWorks
Patricio,
Should we close the thread from here as it is being discussed on Matlab forum?
Hello,
The post is indeed being discussed in the matlab forum indicate above.
Thank you,
Patricio
As this is being discussed on MathWork forum, I will close the thread from here.
Please open new thread, if need further help.