WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Single precision inputs for compiled simulink model

 

GastAlex

Gast


Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 23.12.2016, 13:53     Titel: Single precision inputs for compiled simulink model
  Antworten mit Zitat      
Deutsch:
Hi allerseits,
Ich habe ein Simulink-Modell (prinzipieller Aufbau s.Anhang), welches ich per Skript (s. ebenfalls Anhang) kompiliere und dann in einer Schleife aufrufe. Im Modell werden lediglich statische Berechnungen durchgeführt (=keine Dynamik, nur 1 Zeitschritt zu berechnen). Da im Originalfall RAM knapp ist, möchte ich sowohl im Skript als auch im Modell mit Single Precision rechnen.

Beim Ausführen erhalte ich jedoch folgende Fehlermeldung:
status = 1
cmdout =
** Starting model 'StaticModel' @ Fri Dec 22 12:20:18 2016
Error starting model: Data type of matrix variable from MAT-file Input_matrix.mat is not double!

Daher meine Frage: Was muss ich tun, damit die Matrix in Single Precision akzeptiert wird?

Vielen Dank im Vorraus
Alex

Ps.: Ich benutze MATLAB R2015a




Englisch
Hi there,
I'm using a Matlab-script that compiles a Simulink-model and then executes it within a loop. (script and model structure are attached). The model itself calculates in a non-dynamic matter, meaning it calculates just 1 step per model execution.
Because of restrictions in RAM usage in the original case, I need to store variables in single precision.

However, during execution the following error occurs:
status = 1
cmdout =
** Starting model 'StaticModel' @ Fri Dec 22 12:20:18 2016
Error starting model: Data type of matrix variable from MAT-file Input_matrix.mat is not double!

So I'm asking: What need's to be done that a single precision input matrix is accepted in this case?

Thanks in advance.
Alex

BTW: I'm using Matlab R2015a

StaticModel.slx
 Beschreibung:

Download
 Dateiname:  StaticModel.slx
 Dateigröße:  21.51 KB
 Heruntergeladen:  348 mal
SimulinkCode_InputAsSingle.m
 Beschreibung:

Download
 Dateiname:  SimulinkCode_InputAsSingle.m
 Dateigröße:  485 Bytes
 Heruntergeladen:  404 mal


Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.