Type mismatch for equation in SIMSCAPE
Afficher commentaires plus anciens
Error compiling Simscape network for model cardsimscape.
Caused by:
['cardsimscape/V12/int idt']: Type mismatch for equation. The left hand side of the equation is {[1x1 double], '1/s'} and the right hand side of the equation is {[1x1 double], 'A'}. In foundation.signal.linear.integrator (line 24)
x = [1x1 double]
I = {[1x1 double], 'A'}
Source code for PS-integrator (int idt) is below.
component integrator
% PS Integrator :0.75 :fixed
% This block performs continuous-time integration of the input Physical Signal.
% Copyright 2005-2018 The MathWorks, Inc.
inputs
I; % :left
end
outputs
O; % :right
end
parameters
x0 = { 0, 's' }; % Initial condition
end
variables(Access = private)
x = {value = x0.*ones(size(I)), priority = priority.high};
end
equations
x.der == I;
O == x;
end
annotations
x0 : UnitDropdown = common
end
end

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Foundation and Custom Domains dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!