How can I read the CPU Temperature with Simulink Real-Time?

7 vues (au cours des 30 derniers jours)
When a CPU gets overheated (e.g. due to fan failure), model behavior can change unexpectedly and CPU frequency can be scaled down in hardware. Early detection of CPU overheating is required to issue a warning and put machines in a safe mode of operation before temperature problems can introduce real problems.
Is there a way to read the CPU temperature in Simulink Real-Time?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 23 Nov 2021
For R2020b onwards, consider using the "Read CPU temperature" block from the Speedgoat I/O Blockset. Please contact Speedgoat Technical Support for any queries regarding this block since it is not maintained by MathWorks:https://www.speedgoat.com/help/slrt/page/io_main/refentry_ref_read_cpu_temperature
From R2017a to R2020a, you can use the CPU Temperature block from the Simulink Real-Time / Target Management library:https://www.mathworks.com/help/releases/R2020a/xpc/io_ref/cputemperature.htmlThis CPU Temperature block was removed from our library as part of the major changes in Simulink Real-Time R2020b. See the R2020b Simulink Real-Time release notes for more information:https://www.mathworks.com/help/releases/R2020b/slrealtime/release-notes.html
In R2016b and earlier, the ability to read the CPU temperature is not available in Simulink Real-Time.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by