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.

TMS320F28069F: Simulink models

Part Number: TMS320F28069F


Hello team,

one of my customers came up with the following questions. May you help me out with that?

I have an application where i would like to use your Instaspin-FOC technologie on a TMS320F28069F. Also FAST, Software Encoder and your startup-sequence. I planned to to the Software-Development in Simulink as I am simulating the whole system in Simulink. How are your technologies Implemented? Are they available in Simulink-Examples? It seems like some of your examples are made in 2011 and I don't know if you were using those technologies then already?  Is it possible to use those technologies in Simulink and how? If I understood it right I'd need a Model of your hardware implemention on the ROM?
 
In the meanwhile, the customer found a Simulink example for the F2812, which is named "Simulation of FOC using PMSM model". Are there additional documents available, especially in the regulation part? Is the example a sensorless or a Hall based implementation?


Thank you very much and kind regards,

Felix

  • The MathWorks Simulink product does not have a simulation feature for InstaSPIN. We do not release models of InstaSPIN.

    There are multiple other simulation packages which are supporting hardware in the loop / processor in the loop simulation of InstaSPIN enabled devices. This directly runs the InstaSPIN code on the C2000 device: PSIM, EMBED(VisSim), and PLECS.

    you can find some links if you scroll down, including to The Mathworks where they can get more details on the models that The Mathworks provides
    www.ti.com/.../getting-started.page
  • Hi thank you very much for this information. Maybe you can tell me if my workaround (Plan B) would work. In simulink I designed already my whole System. The driven vehicle, Drag, Motor, 3-Phase Bridge, Battery and so on. I want to use the model to compare Motors, batteries and Mosfets, to calibrate the controllers, evaluate if electrical Components could be destroyed, to simulate temperatures and to find out the range of the vehicle and if my software can handle every situation the System could be into. For me its super fine if the algorithm runs inside the ROM and I transport my generated application software code by hand (i will ned a little help maybe). So i would develop my software with a simulation of the control algorithm realizied in software but later i would use you Hardwareimplementation. Do you know or can you imagine if the Hardware solution will have a big influence on the data I want to generate with my simulation? I thought about if it would be more realistic if I run the software based algorithm with a much smaller step size?
    Thanks in Advance! I hope i explained exactly enough what i want to do.
  • Hi Sebastian,

    The MathWorks key developer is currently on holiday, so I don't yet have a full answer for you. I will continue working on this.

    It is technically possible to use processor-in-the-loop (PIL) to connect to the C2000 and run your control algorithm + InstaSPIN algorithms on the C2000 and connect it to your plant model running in Simulink. However I don't believe we provide instructions / documentation on how to do this for C2000, only in the generic use case (doc link, login required): https://www.mathworks.com/help/ecoder/examples/configure-processor-in-the-loop-pil-for-a-custom-target.html.

    I would advise waiting until our developer can provide additional feedback on this particular question.

    Cheers,

    -Brian

  • Hi Sebastian,

    Attached is a zipfile containing a set of files for a basic example to do PIL for InstaSPIN. It shows how to use one function from InstaSPIN lib to get the version from ROM and output it during PIL.

    I'm providing the files as a courtesy; I have personally not tried them and I cant provide any real instructions to get you going. So take a look and see if you can get them to work.

    Cheers,

    -Brian

    /cfs-file/__key/communityserver-discussions-components-files/171/6457.InstaSPIN_2D00_PIL.zip