C Caller with Multidimensional Signals in Simulink
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How to deal with multidimensional data inputing the C caller function?
How the argument of the C-function looks like where inutting vector of 3-elements ?
double myTEST(double *u){}
Error:Error in port widths or dimensions. 'Output Port 1' of 'Vec3' is a one dimensional vector with 3 elements.
Error in port widths or dimensions. 'Input Port 1' of 'myTEST' is a one dimensional vector with 1 elements.
0 Kommentare
Antworten (2)
Umang Pandey
am 5 Nov. 2024
Hi Jack,
I recommend checking out the following MATLAB blog post titled "How to Correct Errors in Port Width or Dimension in Simulink," which specifically addresses the error you're encountering. It provides various debugging approaches and solutions:
Additionally, the following MATLAB answers might also be of help:
Best,
Umang
0 Kommentare
David Balbuena
am 6 Nov. 2024
You need to specify the dimension is "3" on the C Caller block:

0 Kommentare
Siehe auch
Kategorien
Mehr zu Integrate C Code Using C Caller Blocks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!