No matching constructor signature

9 views (last 30 days)
Hi there,
I got a question about opening a simulink model. Since some time I get the warning in MATLAB:
Warning: Simulink.ModelWorkspace object could not be loaded because of error:
No matching constructor signature.
> In load_system at 21
In myInnerFunction at 61
In myOuterFunction at 343
Unfortunately, I can't really tell since when I get this warning. Does anyone understand what it means and how it can be correted? Googleing for this error has not shown me anything useful. I'm using two C-Mex S-functions to simulate a dynamical system. Besides that, there is nothing fancy in it but this is the only simulink model where this happens.
Thanks for any advice.
==========================================================================
ver command:
MATLAB Version 7.13.0.564 (R2011b)
MATLAB License Number: *******
Operating System: Linux 2.6.39-generic64-isg-ee-smp-3 #1 SMP Wed Jan 18 10:58:52 CET 2012 x86_64
Java VM Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.13 (R2011b)
Simulink Version 7.8 (R2011b)
Aerospace Blockset Version 3.8 (R2011b)
Aerospace Toolbox Version 2.8 (R2011b)
Bioinformatics Toolbox Version 4.0 (R2011b)
Communications System Toolbox Version 5.1 (R2011b)
Computer Vision System Toolbox Version 4.1 (R2011b)
Control System Toolbox Version 9.2 (R2011b)
Curve Fitting Toolbox Version 3.2 (R2011b)
DSP System Toolbox Version 8.1 (R2011b)
Database Toolbox Version 3.10 (R2011b)
Datafeed Toolbox Version 4.2 (R2011b)
EDA Simulator Link Version 3.4 (R2011b)
Econometrics Toolbox Version 2.0.1 (R2011b)
Embedded Coder Version 6.1 (R2011b)
Filter Design HDL Coder Version 2.9 (R2011b)
Financial Toolbox Version 4.1 (R2011b)
Fixed-Income Toolbox Version 2.2 (R2011b)
Fixed-Point Toolbox Version 3.4 (R2011b)
Fuzzy Logic Toolbox Version 2.2.14 (R2011b)
Global Optimization Toolbox Version 3.2 (R2011b)
Hybrid Toolbox Version 1.2.5 -
ICTools Version 6.0W
Image Acquisition Toolbox Version 4.2 (R2011b)
Image Processing Toolbox Version 7.3 (R2011b)
Instrument Control Toolbox Version 3.0 (R2011b)
MATLAB Builder JA Version 2.2.3 (R2011b)
MATLAB Coder Version 2.1 (R2011b)
MATLAB Compiler Version 4.16 (R2011b)
MATLAB Report Generator Version 3.11 (R2011b)
Mapping Toolbox Version 3.4 (R2011b)
MatLab Geodetic Toolbox Version 2.92a
Model Predictive Control Toolbox Version 4.0 (R2011b)
Multi-Parametric Toolbox Version 2.6.3 (R2008a)
Neural Network Toolbox Version 7.0.2 (R2011b)
Optimization Toolbox Version 6.1 (R2011b)
Parallel Computing Toolbox Version 5.2 (R2011b)
Partial Differential Equation Toolbox Version 1.0.19 (R2011b)
RF Toolbox Version 2.9 (R2011b)
Robust Control Toolbox Version 4.0 (R2011b)
Signal Processing Toolbox Version 6.16 (R2011b)
SimBiology Version 4.0 (R2011b)
SimDriveline Version 2.1 (R2011b)
SimElectronics Version 2.0 (R2011b)
SimEvents Version 4.0 (R2011b)
SimHydraulics Version 1.10 (R2011b)
SimMechanics Version 3.2.3 (R2011b)
SimPowerSystems Version 5.5 (R2011b)
SimRF Version 3.1 (R2011b)
Simscape Version 3.6 (R2011b)
Simulink 3D Animation Version 6.0 (R2011b)
Simulink Coder Version 8.1 (R2011b)
Simulink Control Design Version 3.4 (R2011b)
Simulink Design Optimization Version 2.0 (R2011b)
Simulink Fixed Point Version 7.0 (R2011b)
Simulink Report Generator Version 3.11 (R2011b)
Simulink Verification and Validation Version 3.2 (R2011b)
Stateflow Version 7.8 (R2011b)
Statistics Toolbox Version 7.6 (R2011b)
Symbolic Math Toolbox Version 5.7 (R2011b)
System Identification Toolbox Version 7.4.3 (R2011b)
Wavelet Toolbox Version 4.8 (R2011b)
YALMIP Version 3 (R2009b)

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 18 Jun 2012
Could you try running "rehash toolboxcache" at the MATLAB prompt and try calling load_system again? Does the warning go away?

More Answers (2)

xlr8t
xlr8t on 19 Jun 2012
Hi, thanks for your answers. Unfortunately, I'm not able to post my files in public and I hoped that someone knows about this warning. When I start the simulation in debugger mode the load_system command gets called and the only variable is then 'sys' containing the simulink model name as a string. Then on line 21
open_system(sys, 'loadonly');
gets called and then two variables exist in the called function:
function varargout = slprivate(function_name, varargin)
function_name and varargin
function_name contains the string 'slautosave' and varargin contains a string 'tofront' and an empty string. Then the function
[varargout{1:nargout}] = feval(function_name, varargin{1:end});
is called and the debugger returns to 'load_system' and now I have the variables sys with the name of the model plus the variable ans == 1. The funny thing is, when I run the simulation in the debugger mode the warning does not pop up. And any subsequent normal call of the simulation file does also not show this warning. But if I restart Matlab it comes again.
I also tried the suggestion from Kaustubha and that works as well. The warning disappears. But as soon as I restart Matlab it comes again.
Could anyone of you tell me why that could be? Thanks a lot for your advice!
  3 Comments
xlr8t
xlr8t on 29 Jun 2012
Sorry it took me so long. I couldn't look into that for a while.
I'm working on linux so there is no 'Run as administrator' but I guess sudo xyz would be somehow equivalent. I never tried to run matlab with sudo before but strangely that doesn't even work:
sudo: matlab: command not found
If I execute 'rehash toolboxcache' right after starting MATLAB it has no effect and the warnings will pop up but once I ran the simulation and then execute 'rehash toolboxcache' it will make it goe away for the whole MATLAB session.
I really have no clue what this is about. I don't even understand what the warning means. Thx
Kaustubha Govind
Kaustubha Govind on 29 Jun 2012
Hmm.. I don't know enough about Linux to tell why "matlab" can't be started with sudo. I would recommend contacting MathWorks Tech Support also to check if they have a better solution.

Sign in to comment.


Ujala Nadeem
Ujala Nadeem on 1 Oct 2017
hey can anybody tell me why i am getting this "invalid constructor signature" error during arduinosetup in MATLAB. I am doing it to make the communication between arduino and MATLAB because i am inteded to take the values in simulink from an accelerometer which is connected with the arduino. Please help i am stuck with this.

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!