<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/</id><updated>2020-08-30T09:33:34.949000Z</updated><subtitle>Recent posts to Reading CPU load from within Codesys</subtitle><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#1114" rel="alternate"/><published>2020-08-30T09:33:34.949000Z</published><updated>2020-08-30T09:33:34.949000Z</updated><author><name>fleaplc</name><uri>https://forge.codesys.com/u/fleaplc/</uri></author><id>https://forge.codesys.com451c40b10ab54e03a5efdc3278f34208015d11dd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ingo, thanks for clarification. Do you know some function to read the "total" CPU load? (to get same value as in htop?)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#c070/0e4e" rel="alternate"/><published>2020-08-29T20:10:44.533000Z</published><updated>2020-08-29T20:10:44.533000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com32e13dc560aaff2cb3556c161371864f6edc0982</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;SchedGetProcessorload only gives the load of Realtime IEC Tasks. As the rest are background jobs with few to none realtime constraints. You can imagine, that with 100% background load, the system is still responsive. But when you have 100% load in realtime taks, your CPU is stuck, and no communication possible anymore. That's the reason why CODESYS monitors this load.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#c070" rel="alternate"/><published>2020-08-29T13:34:11.161000Z</published><updated>2020-08-29T13:34:11.161000Z</updated><author><name>fleaplc</name><uri>https://forge.codesys.com/u/fleaplc/</uri></author><id>https://forge.codesys.com439dfdf75ba647e37c0d1c9e6eefed105deb9fb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm testing the call udiProzessorLoad:=SchedGetProcessorLoad(Result); but the CPU load I get is very different from "htop" value (In codesys I read 8, in htop O get 56).. Why?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#b5b8" rel="alternate"/><published>2020-02-27T15:13:16.947000Z</published><updated>2020-02-27T15:13:16.947000Z</updated><author><name>Araforn</name><uri>https://forge.codesys.com/u/araforn/</uri></author><id>https://forge.codesys.com94d46f787320e38d646a91523bf862bbabf0c336</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Kim,&lt;br/&gt;
udiProzessorLoad:=SchedGetProcessorLoad(Result);&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Been searching a lot for this one. Thanks for the info.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#8ecd" rel="alternate"/><published>2020-02-27T15:13:15.046000Z</published><updated>2020-02-27T15:13:15.046000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comcd08dfe9504bc9093d4096eca6e379359e9334a6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Kim,&lt;/p&gt;
&lt;p&gt;udiProzessorLoad:=SchedGetProcessorLoad(Result);&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GetProcessorLoad.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1345"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading CPU load from within Codesys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/51fe121066/?limit=25#7fc9" rel="alternate"/><published>2020-02-27T15:13:14.422000Z</published><updated>2020-02-27T15:13:14.422000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com22de140229a8869958c986005a2d0d937349739c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We're running Codesys on it's own core in a multi-core CPU.&lt;br/&gt;
We would like to present the Codesys CPU load in a HMI application running on another core.&lt;br/&gt;
Which Codesys library/function can be used for getting the CPU load percentage?&lt;/p&gt;
&lt;p&gt;I messed around and tried some different functions but never got it to work, hopefully you can provide me with the right answer.&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Kim Hansen&lt;br/&gt;
Beijer Electronics Automation&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>