Matlab/Simulink and Plecs standalone joint simulation error shows discontinuous state after switching.

17 visualizaciones (últimos 30 días)
I am trying to simulate Plecs standalone with Matlab/Simulink, but I encountered a problem during the joint simulation. I built a three-phase inverter and permanent magnet synchronous motor module in Plecs, imported the official thermal description file of Infineon for the inverter part, attempted to obtain the losses and junction temperatures of the inverter power devices, and output the simulation model built in Plecs as an FMU file. I opened the FMU file in Matlab/Simulink, and the control signal part of the motor was the SVPWM control method built in Simulink. However, there was a simulation error during runtime, as shown below. In order to verify the correctness of the simulation model in Plecs, I first provide the control signal in Plecs, which will display the discontinuous state after the switch, and the voltage across one inductor in the permanent magnet synchronous motor module will suddenly change. In order to solve this problem, I changed the tolerance of the solver part to 1e-4 and the problem was solved. However, when I output it as an FMU file and open it in Simulink to provide its control signal for joint simulation, the same problem occurred again. How can I solve it? I am looking forward to and grateful for your answer and clarification

Respuestas (1)

Joe
Joe el 28 de Oct. de 2024 a las 9:34
It sounds like you're encountering a common issue with joint simulation between MATLAB/Simulink and Plecs, particularly when dealing with discontinuities in your model after switching. Here are a few strategies to address this problem:
  1. Solver Configuration: Since you mentioned that adjusting the solver tolerance helped in Plecs, you may need to ensure that the solver settings in Simulink are consistent with those in Plecs. Try using a fixed-step solver in Simulink and match its step size to that used in Plecs. This can help maintain synchronization and reduce the likelihood of discontinuities.
  2. Initial Conditions: Ensure that the initial conditions for your system in Simulink match those in Plecs. Discontinuities often arise when there are differences in the initial state, so it’s critical to align these parameters.
  3. Modeling of Switches: Look into how the switches are modeled in your inverter and motor system. If the switches change state abruptly, this can lead to significant voltage and current jumps, resulting in discontinuities. Consider implementing smoother switching profiles or using PWM signals that gradually change states.
  4. Signal Filtering: To mitigate sudden changes in voltage or current, you might apply filtering techniques to your control signals in Simulink. This can help to smooth out transitions and reduce the impact of abrupt changes.
  5. Error Logging: Review the error messages and logs generated during simulation. They can provide valuable insights into the specific points of failure, allowing you to make targeted adjustments to your model.
  6. Testing with Simplified Models: As a troubleshooting step, try to simplify your model by removing certain components and testing the joint simulation iteratively. This can help isolate the specific element that might be causing the discontinuity.
If these strategies don't resolve your issue, consider reaching out to experts who specialize in MATLAB and Plecs simulations.
For comprehensive support with your MATLAB assignments and projects, don't hesitate to contact MATLAB Assignment Experts. Our skilled tutors offer top-notch homework assistance and problem-solving solutions tailored to your needs. Whether you're facing a complex project or need a quick resolution, we’re here to help. For further inquiries, you can contact us at WhatsApp: +1 (315) 557-6473 or email: info@matlabassignmentexperts.com
Reach out today for the best MATLAB assignment help!

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by