5.5 Implementation
The control strategy was implemented based on a dSPACE DS1104 rapid prototyping system and MATLAB® and Simulink® installed on a host PC. The sampling period used with the predictive strategy was Ts = 100 μs, or a 10 kHz sampling frequency. The predictive algorithm implemented with the control platform based on the dSPACE DS1104 is explained in a flow diagram presented in Figure 5.8. The control loop begins sampling the required signals. Then, the algorithm estimates the active component of the load by means of (5.18) and initializes the value of gop, a variable that will contain the value of the lower cost function evaluated by the algorithm so far. Then the strategy enters a loop where, for each possible switching state, the cost function (5.19) is evaluated considering current and voltage predictions obtained from (5.17), (5.11), and (5.12), respectively. If, for a given switching state, the evaluated cost function g happens to be lower than gop, that lower value is stored as gop and the switching state number is stored as jop. The loop ends when all 27 switching states have been evaluated. The state that produces the optimal value of g (minimal) is identified by variable jop and will be applied to the converter during the next sampling interval, starting the control algorithm again.
5.5.1 Reduction ...
Get Predictive Control of Power Converters and Electrical Drives now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.