Error while bringing model references up to date

6 views (last 30 days)
David
David on 16 Apr 2015
Edited: David on 16 Apr 2015
Hello,
Does anyone have any tips for me on how to resolve this error message below?
  • ### Real-Time Workshop build procedure for model: 'model reference name' aborted due to an error.
  • ??? Error using ==> 'name of .m function' at 492
  • Error due to multiple causes:
  • --> Error(s) encountered while building model
  • "model reference name".
  • --> Error while bringing model references of model 'top level model name' up to date:
  • Error(s) encountered while building model "model reference name".
Caused by:
  • Error using ==> '.m file' at 492
  • Error(s) encountered while building model "model reference name"
  • Error using ==> '.m file' at 492
  • Error while bringing model references of model 'top level model name' up to date:
  • Error(s) encountered while building model "model reference name"
Here are more details about what I'm doing:
  • I'm running a .m file that calls the sim function to run a .mdl
  • The .mdl has model references
  • This function had been working in the past but it doesn't anymore
  • I'm providing my inputs to the sim by making a numeric array inside my .m function
  • I'm using Matlab 2009a
  • I have more than one instance of the model reference on my path
  • I provide the inputs to the model (i.e. ut) by making an array inside my .m function
I'm running my simulation with the following options:
options = simset(...
'AbsTol','auto' ...
,'Debug','off' ...
,'Decimation', 1 ...
,'DstWorkspace', 'current' ...
,'FinalStateName', '' ...
,'FixedStep', 'auto' ...
,'InitialState', [] ...
,'MaxOrder', 5 ...
,'ConsecutiveZCsStepRelTol', 2.8422e-013 ...
,'MaxConsecutiveZCs', 1000 ...
,'SaveFormat', 'Array' ...
,'MaxDataPoints', 0 ...
,'MaxStep', 'auto' ...
,'MinStep', 'auto' ...
,'MaxConsecutiveMinStep', 1 ...
,'OutputPoints', 'all' ...
,'OutputVariables', 'ty' ...
,'Refine', 1 ...
,'RelTol', 0.001 ...
,'SrcWorkspace', 'base' ...
,'Trace', '' ...
,'ZeroCross', 'on' ...
,'SignalLogging', 'on' ...
,'SignalLoggingName', 'logsout' ...
,'ExtrapolationOrder', 4 ...
,'NumberNewtonIterations', 1 ...
,'TimeOut', [] ...
,'ConcurrencyResolvingToFileSuffix', [] ...
,'ReturnWorkspaceOutputs', [] ...
,'RapidAcceleratorUpToDateCheck', [] ...
,'RapidAcceleratorParameterSets', [] ...
,'Solver', 'VariableStepDiscrete' ...
,'InitialStep', 'auto' ...
);

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware 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!