Problem with table-based battery, Simscape, simulink

Table-based Battery, Simscape, Simulink
Problem:
The start values for the SOC, V0 and R0 is 1x4 data points. Everytime we try to make it 1x5 or higher we get the message:
"Length of Terminal resistance, R0(SOC) must be equal to length of Vector of state-of-charge values, SOC."
Even thought the vectors are the same length.
How can we get more data points into the battery?
Setup:
  • Temperature dependent tables: No - do not tabulate over temperature
  • Current directionality: Enabled
  • Self-discharge: disabled
  • Extrapolation method for all tables: Nearst
  • Dynamics: None
Thank you in advance for your time

2 Comments

I am having this exact issue; it only appears when current directionality is enabled.
I have disabled this in my model for now, but would like to be able to enable it in the future. I greatly appreciate any updates to Benedikte's question.
Any luck with this issue?

Sign in to comment.

Answers (1)

A = [-b/J K/J
-K/L -R/L];
B = [0
1/L];
C = [1 0];
D = 0;
motor_ss = ss(A,B,C,D)

Asked:

on 24 Nov 2020

Commented:

on 17 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!