I am trying to simulate a battery discharge test in which I am trying to control a relay switch that's connecting battery to the load using Flow chart

1 次查看(过去 30 天)
Error in port widths or dimensions. 'Output Port 1' of 'cell_unit_discharge/Chart/temp' is a one dimensional vector with 1 elements.
Besides this error I am also recieving an error stating that the solver is in loop. when the flow chart conditions I am putting.
I am Using Flow Chart to make a conditional Case operation

采纳的回答

Mitch Lautigar
Mitch Lautigar 2022-5-5
  • Error 1: "Error in port widths or dimensions. 'Output Port 1' of 'cell_unit_discharge/Chart/temp' is a one dimensional vector with 1 elements" This error is happening because MATLAB is not sure how to handle the data it is receiving from port 1. Check your settings to make sure transmission of data is smooth, and if nothing else, plot the incoming data to verify transmission.
  • Error 2: "Besides this error I am also recieving an error stating that the solver is in loop. when the flow chart conditions I am putting." MATLAB prefers to have the data BEFORE running through any loops. This is a safeguard MATLAB has to avoid memory being overwritten.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Power and Energy Systems 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by