Error in port widths or dimensions.

9 Ansichten (letzte 30 Tage)
Mustaqim Nurhady
Mustaqim Nurhady am 13 Jan. 2024
Kommentiert: Mustaqim Nurhady am 14 Jan. 2024
Error in port widths or dimensions. 'Output Port 1' of 'FuzzyPID/Add1' has 3 elements. This port does not accept the dimensions (or orientation) specified by the output signal.
and
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 1' of 'FuzzyPID/Transfer Fcn'.
I am using MATLAB R2022b.
Would you mind for providing the solutions for above errors, please.
Thank you alot in advance.
  2 Kommentare
Binaya
Binaya am 14 Jan. 2024
Bearbeitet: Binaya am 14 Jan. 2024
Hi Mustaqim
Please provide all files required to run your model. The current model needs a variable "fis" which is not present in the provided file.
Mustaqim Nurhady
Mustaqim Nurhady am 14 Jan. 2024
Hi Binaya,
I have upload the "fis" file in the question.
Thank you for the info.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Paul
Paul am 14 Jan. 2024
If it makes sense that the outputs of each Fuzzy Logic Controller is 3, then there is a problem at the the output of the highlighted sum block. The output of that block would be of size 3, but the the follwing Transfer Fcn block can only accept scalar inputs. So you'd need to demux the output of the sum and apply a separate Transfer Fcn to each of the three individual scalar signals. But then it looks like all of the feedback loops might be intended to apply to scalar signals, so there will still be a problem of how to combine the three outputs from the Transfer Fcn blocks into a single scalar signal for the feedback.

Kategorien

Mehr zu Fuzzy Logic in Simulink finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by