soupy Posted September 20, 2008 Report Share Posted September 20, 2008 I have some processor intensive data acquisition and control programs that run on windows servers. Data integrity is extremely critical. I want to get all of the metrics I can to prove that data is good and determine how far away I am from "bad" data. Does anyone know a method to acquire the current CPU usage? A total usage will suffice, but levels for each core would be super awesome! Thanks in advance, -Andy Quote Link to comment
crelf Posted September 20, 2008 Report Share Posted September 20, 2008 QUOTE (bazookazuz @ Sep 19 2008, 06:24 PM) Does anyone know a method to acquire the current CPU usage? A total usage will suffice, but levels for each core would be super awesome! Are you looking for a third-party tool that monitors in the background, or do you want a http://zone.ni.com/devzone/cda/epd/p/id/4659' target="_blank">VI that will allow you to monitor it in your code? Quote Link to comment
soupy Posted September 21, 2008 Author Report Share Posted September 21, 2008 QUOTE (crelf @ Sep 19 2008, 05:32 PM) Are you looking for a third-party tool that monitors in the background, or do you want a http://zone.ni.com/devzone/cda/epd/p/id/4659' target="_blank">VI that will allow you to monitor it in your code? Thanks, but it appears that eTree perfmon no longer exists on the internet. All the links for it are dead. Do you know of any web site that would still have it, or do you have it? Quote Link to comment
Neville D Posted September 21, 2008 Report Share Posted September 21, 2008 QUOTE (bazookazuz @ Sep 19 2008, 03:24 PM) Does anyone know a method to acquire the current CPU usage? A total usage will suffice, but levels for each core would be super awesome!Thanks in advance, -Andy Take a look at the http://decibel.ni.com/content/docs/DOC-2051' target="_blank">Windows Performance Monitor that uses .NET calls to access CPU (including per core values) and other system parameters. There is a similar VI for RT applications on NI's website. N. Quote Link to comment
crelf Posted September 21, 2008 Report Share Posted September 21, 2008 QUOTE (bazookazuz @ Sep 19 2008, 07:18 PM) Do you know of any web site that would still have it, or do you have it? I don't, but it looks like Nev's suggestion of the http://decibel.ni.com/content/docs/DOC-2051' target="_blank">Windows Performance Monitor is what you're after. Quote Link to comment
mprim Posted September 24, 2008 Report Share Posted September 24, 2008 I prefer Process Lasso for monitoring as well as controlling applications. You can get it at: http://www.bitsum.com/prolasso.php Quote Link to comment
John Lokanis Posted September 24, 2008 Report Share Posted September 24, 2008 QUOTE (crelf @ Sep 19 2008, 03:32 PM) do you want a VI that will allow you to monitor it in your code? Why use third party when you can do it in .NET? Here is an example that you can modify to do what you want. -John Download File:post-2411-1222130857.vi Quote Link to comment
liuweiyin Posted September 24, 2008 Report Share Posted September 24, 2008 Hello everybady! Quote Link to comment
soupy Posted September 24, 2008 Author Report Share Posted September 24, 2008 QUOTE (jlokanis @ Sep 22 2008, 07:48 PM) Why use third party when you can do it in .NET?Here is an example that you can modify to do what you want. -John http://lavag.org/old_files/post-2411-1222130857.vi'>Download File:post-2411-1222130857.vi Awesome! This one is nice 'n easy. Can you use .NET to query the processor usage of a program? Quote Link to comment
Neville D Posted September 25, 2008 Report Share Posted September 25, 2008 QUOTE (bazookazuz @ Sep 23 2008, 03:15 PM) Awesome! This one is nice 'n easy. Can you use .NET to query the processor usage of a program? The Windows Performance Monitor I mentioned earlier, does EXACTLY that. N. Quote Link to comment
soupy Posted September 25, 2008 Author Report Share Posted September 25, 2008 QUOTE (Neville D @ Sep 23 2008, 06:13 PM) The Windows Performance Monitor I mentioned earlier, does EXACTLY that.N. I'm sorry, I hadn't had time to fully investigate that VI yet. You are correct, it does exactly that (and more!). I'll make a VI just for processor usage and post it shortly. Thanks all for the help! Quote Link to comment
John Lokanis Posted September 25, 2008 Report Share Posted September 25, 2008 QUOTE (bazookazuz @ Sep 23 2008, 03:15 PM) Can you use .NET to query the processor usage of a program? Yes. Just modify the example, changing 'Private Bytes' to the proper counter name you want. Good luck finding it! Microsoft makes this so incredibly hard to understand and find in MSDN that you will want to scream :headbang: Try looking here for starters: http://technet.microsoft.com/en-us/library/cc780836.aspx -John Here is a VI that monitors all CPU usage. You might be able to modifiy this to give you the % of a specific process. -John Download File:post-2411-1222216009.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.