Is there a way to get basic hardware information from the runtime? I am making automated tests that measure execution time and would like to record CPU/Processor type, clock speed, and the amount of RAM. I'm mostly interested in the standard Win3 (x86 and x64) runtimes, although others would be useful as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to get basic hardware information from the runtime? I am making automated tests that measure execution time and would like to record CPU/Processor type, clock speed, and the amount of RAM. I'm mostly interested in the standard Win3 (x86 and x64) runtimes, although others would be useful as well.
I use SysTarget.lib. May this is also valid for you
e.g.
BR
Chris
Last edit: Chris.O 2020-03-19
Does someone know if there is an other library for deeper hardware information (e.g. Firmware version)
In my case I want to see Firmware of the PFC200
BR
Chris
Hi Chris,
only by cmd line by
/etc/config-tools/get_coupler_details firmware-revision
BR
Edwin
Ok,
ThatΒ΄s a pity :-(
thank you Edwin
Can I read the current CoDeSys version?
like V3.5 SP15 Patch 3 ?
Last edit: Chris.O 2020-03-23
Hey Chris,
wieder ΓΌber die lib "SysTarget": https://faq.codesys.com/pages/viewpage.action?pageId=21135402
SysTarget.SysTargetGetVersion(pulVersion := ADR(dwVersion)); // V3.5.SP13.10 == > 50662666 = 16#03050D0A
GruΓ Thomas
Ahh, super, Danke! Ich hab das dWord ausgelesen, aber konnte mir aus dem Ergebnis keinen Reim machen...Danke!
Die 4 Bytes des DWORDS entsprechen den 4 Stellen der Version. In deinem
Beispiel:
16#03050D0A
V3.5.13.10 = 3.5 SP13 Patch 1
Thanks all. I'll checkout SysTarget library. .