First of all, I apologize for the intrusion. I am having an issue with a Simulink model using Model-Based Design (MBD), and I’m not sure if you could help me solve it. I am implementing Field Oriented Control (FOC) for a PMSM motor; I have created a simulated plant of the motor and I'm using the controllers from the AMCLIB library.
My goal is to run the control on an NXP evaluation board (specifically the S32K344 microprocessor on the S32K3X4EVB-T172 board). To perform the control, I need to read the currents from the simulated plant using the board's ADC via the NXP ADC blocks. Additionally, I need to synchronize these ADC readings with the PWM. Could you tell me which blocks I should use? I'm not quite sure how to set it up.
Thank you for all