LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU utilization optimization

Hi ,

I have an application that is having two parallel threads running simultanously.

Though I have given timed delays to the loops , the CPU resource usage seems

to hogged by application when it is run.Is there any way to figure out what part 

of the code /thread seems to take the max share of CPU ....

 

Sundar.

0 Kudos
Message 1 of 4
(3,066 Views)
First Narrow down by blocking one loop and check the CPU Process for individual loop. Then still narrow down the functions. Can you please post the code for better understanding.
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 2 of 4
(3,064 Views)

Thanks Balaji,

However I was looking at profiling all of the used submodules individually to analyse their performance better

since the Code is pretty complex.

 

It wouldnt be possible to post the code since am bound by the so called "Intellectual Property" 

 

Sundar.

0 Kudos
Message 3 of 4
(3,036 Views)

Hi

 

1. Click on Tools»Profile»Performance and Memory...
2. Click Start in the Profile tool to start profiling.
3. Run your application.
4. Stop your application.
5. Press Stop in the Profile tool to stop profiling to get results.

You can see from the results wich VI is consumming a lot.  This means that you
will be able to find the most performance improvement by
making the VI faster.

 

For more detail, pick a look at "Using the Profile Tool.vi" (generaly found at: C:\Program Files\National Instruments\LabVIEW 8.6\examples\general\profile.llb\Using the Profile Tool.vi)

 

0 Kudos
Message 4 of 4
(3,023 Views)