How to solve the Data Type Mismatch error in Active cell balancing
조회 수: 13 (최근 30일)
I've developed an Active cell balancing model. The model and scripting file as no error, but while running the simulation, im getting data type error like this
An error ocurred while propagating data type 'Double'. I even attached the model. Can anyone say solution to my data type mismatch error.
Anthony Coadou 2023년 1월 3일
The problem is the size mismatch on port PWM. The block reads:
where s1 and s2 are alternatively assigned values of size 1 (scalar 0) and 2 (vector PWM). The MATLAB Function block tries to infer its output data types first, but fails to do so because of the type mismatch, and throws this cryptic error.
Hope that helps.