Warning: HDLCoder can not find a valid sample time for the model.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Maximum
am 5 Mai 2014
Beantwortet: Tim McBrayer
am 5 Mai 2014
Hi guys.
I have this error during using HDL coder. But I don't understand the meaning. "Warning: HDLCoder can not find a valid sample time for the model. All rates are 0 (continuous)" Anyone know about this problem? Thanks in advance
0 Kommentare
Akzeptierte Antwort
Tim McBrayer
am 5 Mai 2014
Digital hardware is best modeled in Simulink using the Fixed-step Discrete solver. This warning is informing you that a) you are using a variable-step solver, and b) that you have not specified any discrete rates anywhere in the system. The solution is to change the solver used by Simulink. The solver setting is found in the configuration parameters dialog. Alternatively, you can run:
>> hdlsetup('modelname')
This will set the solver appropriately, as well as set a number of other global model settings to ensure best compatibility for HDL Coder.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!