Dear QSPICE Community,
I’m seeking help with significant discrepancies between my QSPICE simulation (using custom C++ DLLs) and an equivalent MATLAB simulation for a battery cell balancing system.
Code Alignment: Both C++ DLLs and MATLAB scripts implement identical control logic
My cell model has been replicated in MATLAB with Trapezoidal approach which is also used by Qspice.
I am sharing the results with discrepancies.
What is the advice to be followed when converting the whole schematic to MATLAB to get same results.
Is there any issue that is created by .dll block?
If anyone interested in how i am doing that, please contact me personally, your help will be appreciated
Thanks
Mike 2
Notice the cell balancing currents and cell voltages in Qspice and MATLAB