title: How to get details in Matlab/Simulink about the error "Struct contents reference from a non-struct array object"?
body: <p>I have a model designed with Matlab/Simulink R2017a and it is running well with no errors or warning messages in Diagnostic Viewer or MATLAB Command Window when I run it diretly from the Simulink.</p>
  
  <p>However, when I start a build process on ConfigurationDesk from dSPACE to use this model in an embedded application the build process is aborted and the following message is shown:</p>
  
  <pre><code>Could not generate model code for model 'Model'. See MATLAB Command Window for details.
  </code></pre>
  
  <p>In MATLAB Command Window the following message is shown:</p>
  
  <pre><code>Struct contents reference from a non-struct array object.
  ================================================================================
      Aborted Model-Code Generation for Model "Model".
  ================================================================================
  </code></pre>
  
  <p>As you can observe In MATLAB Command Window, there is no enough details about the error and due that I'm not being able to fix it.</p>
  
  <p>There is any way to get more details about the error in order to track down it?</p>
  
  <p>Thank you so much in advanced!</p>