LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU Usage

Hi guys!

 

I would like to know if its possible get CPU usage from a VI while running(exe in a future)

Thanks.

0 Kudos
Message 1 of 7
(888 Views)

Hi Ivan,

 


@IvanMalonda wrote:

I would like to know if its possible get CPU usage from a VI while running(exe in a future)


Do you want the CPU load of a single VI or the whole program?

Getting the CPU load of the whole program is possible using Windows function calls…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(885 Views)

Hi Gerd,


@GerdW  ha escrito:

Hi Ivan,

 


@IvanMalonda wrote:

I would like to know if its possible get CPU usage from a VI while running(exe in a future)


Do you want the CPU load of a single VI or the whole program?

Getting the CPU load of the whole program is possible using Windows function calls…


Whole program. I tried with function calls but i haven't found out. If you can help me i appreciate so much.

0 Kudos
Message 3 of 7
(860 Views)

Hi Ivan,

 

when using my favorite search engine for "labview cpu usage" I find a lot of websites discussing your problem, like this or that one…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(833 Views)

If you want to be system independent (.Net only works on Windows) you can use the NI System Control API. An example showing how this works would be at <LabVIEW>\examples\nisyscfg\Resource Monitor.vi

Rolf Kalbermatter
My Blog
Message 5 of 7
(819 Views)

@GerdW  ha escrito:

Hi Ivan,

 

when using my favorite search engine for "labview cpu usage" I find a lot of websites discussing your problem, like this or that one…


Thank you Gerd, I'm gonna check!

0 Kudos
Message 6 of 7
(719 Views)

@rolfk  ha escrito:

If you want to be system independent (.Net only works on Windows) you can use the NI System Control API. An example showing how this works would be at <LabVIEW>\examples\nisyscfg\Resource Monitor.vi


thank you mate!

0 Kudos
Message 7 of 7
(718 Views)