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.

TMS320F28379D: Embedded coder MAtlab simulink for TI C2000: output assignement monitoring

Part Number: TMS320F28379D

Hi everyone, 

I'm working on the DSP delfino F28379d with the Matlab toolbox: "Embedded Coder Support Package for Texas Instruments C2000 Processors" to generate a code and implement it directly on the target.
On the Simulink interface, I want to modify the pin assignement of a PWM output under certain conditions. I see that the PWM pin assignments can be setted trought the configuration parameters tab: However, is it possible to modify this assignment directly on the Simulink model to perform it in real time mode for example?

Many thanks for your responses

  • Pls post your queries to MATLAB tech support. Am forwarding this query to them.
  • Hi Yannis,

    It sounds like a reasonable thing to want to do. Unfortunately I think you will find limited knowledge about the Embedded Coder product on this forum. Can I suggest you post the same question to The Mathworks support forums at:
    www.mathworks.com/.../answers

    They will be far better placed to help with this kind of enquiry. Thanks.

    Regards,

    Richard
  • Hi Yannis,

    This is not possible as we initialize the port pin based on the settings in the block and this happens one time during initialization of the controller. So any updates to block in terms of pin assignment during run time won’t work.

    The good approach for you would be to have as many blocks as you want based on as many outputs you want to control based on different conditions in your application and then switch to these blocks based on the condition.

    That way you would need to handle the condition check and switching to appropriate block from your application level.

    Hope it helps!!