NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the CPU workload via a call executable

Solved!
Go to solution

Hi everyone,

 

i want to get the cpu workload of my PC with this command: "wmic cpu get loadpercentage /value"

 

If i copy this command in my cmd, i get this response:

cmd response.png

This would be good because i can work with it

 

But if i place the same command in my call executable:

call executable  .png

 

Then i get this information in my variable: 

 

Screenshot 2023-08-09 085238.png

 

Why is it like that and not the same text as if i use this command in cmd.exe?

 

0 Kudos
Message 1 of 2
(743 Views)
Solution
Accepted by topic author to0bi

I did it:

 

I forgot the /c before the argument

 

"/c wmic cpu get loadpercentage /value"

0 Kudos
Message 2 of 2
(736 Views)