Battery duty cycle at each instant ?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MUKESH KUMAR
el 17 de Ag. de 2018
Abierta de nuevo: Walter Roberson
el 12 de En. de 2019
I have battery voltage Vi at each time instant(predefined before in simulink) and taking the reference voltage Vo (between 718-719 choose randomly at each instant). Now, I want to calculate and store duty cycle D of battery at each time instant according to D = {1-(Vi/Vo)}. How can I do it in a incremental time stamp loop or using for loop. Thanks
0 comentarios
Respuesta aceptada
Adam Danz
el 20 de Ag. de 2018
I didn't understand what Vi and Vo are. Are they each vectors of voltages sampled at temporal intervals?
If that's the case, and if Vi and Vo have the same length, the duty cycle, according to your equation would just be
D = 1 - Vi./Vo;
But I have a feeling this doesn't address what you need. Feel free to follow-up in the comments below.
2 comentarios
Adam Danz
el 21 de Ag. de 2018
My method above does not require knowing the length of each vector and it does not require a loop. As long as Vi and V0 are the same lenght
length(Vi) == length(Vo)
and as long as Vi and Vo are sampled together at the same time, that 1-line should do what you're asking, if I'm understanding correctly.
Have you tried running that line? Is there an error?
Más respuestas (0)
Comunidades de usuarios
Más respuestas en Power Electronics Control
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!