How to change phase in Phase shift full bridge?
显示 更早的评论
Hello everyone. I'm now trying to simulate a PSFB. Basically, it's a isolated chopping DC-DC transformer. Instead of controlling the duty cycle, you control the phase for 2 of the PWM. You will then allow more or less power to flow.
The problem is: How to dynamically change the phase with a feedback loop
-Of a controled PWM voltage (the parameter is "TD", time delay.)
-Of a pulse generator (parameter "phase delay")
I have been trying to use a S function. I can succesfully change the duty cycle (actually, S function are quite easy to use, and very useful ^^). I can change a lot of parameter, but not the PHASE DELAY .
Here is the error message: " Error evaluating registered method 'InitializeConditions' of MATLAB S-Function 'variablePhase2' in 'phase_shift_bridge_v0_2/Level-2 MATLAB S-Function'. The following is the MATLAB call stack (file names and line numbers) that produced this error: ['D:\Velocar\Battery_Charger\Electrical_circuit\variablePhase2.m'] [53]
Cannot change parameter 'Phase delay (secs): (PhaseDelay)' of 'phase_shift_bridge_v0_2/Pulse Generator2' while simulation is running"
I am really stuck on this one. I have read many document about S function, and I don't know what's going on (except that it seems that some parameter of Simscape component cannot be modified by S function. But why the phase delay can't be touch during simulation while duty cycle can?)
As always, I will look for an answer, and if I find something, I will let you know =D
采纳的回答
更多回答(1 个)
Jos van Rens
2019-8-19
0 个投票
Hi Kevin
Will it be possible to get the s-function variablePhase2
It was not in the *.zip
Best regards
Jos van Rens
1 个评论
sanu joy
2020-5-6
Hi jos,
do you have this s-function variablePhase2 file.
please share if you have this.
Regards,
Sanu Joy
类别
在 帮助中心 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!