Hi guys,
I‘m working on a permanent magnet synchronous machine and I want to simulate it with the S-function Level 1. However, I always receive an error message and I‘m not understanding what is wrong, so to say what and where the fault is.
I have 3 inputs (Ud, Uq, ML) and 4 outputs (Welec, id, iq, theta).
The error statement is as follows:
Not enough input arguments.
Error in Testcsfunc (line 3)
switch flag.
Attached you find an overview of what I have put in the programme.
Thank you for help in advance!
aaa.pdf (68.9 KB)
Gleichungen .pdf (15 KB)
Please post the code that does not work and the exact error message you get.
What do you mean by the code ?
The message I get is as follows:
Not enough input arguments.
Error in Testcsfunc (line 11)
switch flag,
function [sys,x0,str,ts] = Testcsfunc(t,x,u,flag)
Rs=0.2 % Widerstand
Ld=8.5e-3 % Induktivität in d-Achse
Lq=8.5e-3 % Induktivität in q-Achse
F=0.175 % Polradfluss
J=0.0027 % Massenträgheitsmoment
P=4
Do we think we're still in Kansas, Toto?
Nadia97:
What do you mean by the code ?
Your OP has "Attached you find an overview of what I have put in the programme."
Why an overview? Just post your .ino and cpp (if applicable) files.
What's in aaa.pdf looks like Matlab code, not C or C++.
The message I get is as follows:
Not enough input arguments.
Matlab error message. Nothing to do with Arduino.