Why do I get this error? Undefined function 'abs' for input arguments of type 'Simulink.Parameter'.

12 vues (au cours des 30 derniers jours)
I get Undefined function 'abs' for input arguments of type 'Simulink.Parameter' error and I do not know why because I do not use any abs functions. I'm useing simpowersystem modeling and i need to have blocks parameters set as ImportedExtrn storage class.

Réponse acceptée

Niklas Nylén
Niklas Nylén le 9 Avr 2014
Are you using the parameter as a mask value? There may be something below the mask that is attempting to use the parameter that cannot handle Simulink.Parameter parameters.
  2 commentaires
Jernej
Jernej le 10 Avr 2014
I am not using any masks. I just use standard simpowersystem blocks and lookuptables and constants from simulink library.
Niklas Nylén
Niklas Nylén le 11 Avr 2014
Simpowersystem models are likely masked systems (I don't have it so I can't check). If you use the Simulink.Parameter in the mask of a simpowersystem block there could be a (bad) implementation of abs(parameter) inside that block.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by