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