05-18-2016 05:34 AM
Hi. I developed a complex application for performing two dimensional FFT on image sequences.
In order to complete the VI my Windows 8.1, i7, 8GB Ram notebook takes several minutes due to high number of operations.
I supposed the whole resources of notebook are being used by Vi but when I checked performance of it unexpectedly I found that CPU load is about 10% and RAM consumption about 40%.
My question is: why Vi is not executed faster even if there are enough free resourced? Is there any way to increase Vi time execution maintaining the same Vi structure?
Thank you.
Yixiao uncle
05-18-2016 05:40 AM
@Yixiao-uncle wrote:Hi. I developed a complex application for performing two dimensional FFT on image sequences.
In order to complete the VI my Windows 8.1, i7, 8GB Ram notebook takes several minutes due to high number of operations.
I supposed the whole resources of notebook are being used by Vi but when I checked performance of it unexpectedly I found that CPU load is about 10% and RAM consumption about 40%.
My question is: why Vi is not executed faster even if there are enough free resourced? Is there any way to increase Vi time execution maintaining the same Vi structure?
Thank you.
Yixiao uncle
This questions can be answered only by seeing the VI. Its waste of time if you post your questions in this manner. Without knowing what you have coded how can someone give a solution to your question.
If the resources are not used properly then the time taken by vi to complete is generally high this is due to improper programming. Hope you understand.
05-19-2016 07:57 AM - last edited on 12-10-2024 08:45 AM by Content Cleaner
Hi SanthoshLoel ant thank you for your replay.
Of course I understand your point of view and I dont have any problem to attach my Vi but it is still in debug phase, full of indicators to show me if calculations are proceeding properly. Anyway the title of my question is "General question about Vi ..." so I was searching general rules for increasing Vi execution regardless the quality of developped Vi.
Thank to google I found very helpfull Ni note and I want to share with people of Forum:
http://www.ni.com/newsletter/51020/en/.
It is about the parallel programming for FOR LOOP. By using this technique I reduced execution time of my Vi of 20% (19.8%)
Thank you
Yixiao uncle
05-19-2016 03:38 PM
@Yixiao-uncle wrote:so I was searching general rules for increasing Vi execution regardless the quality of developped Vi.
Glad you found something that might help, but no magic bullet exists to make bad code good, you just need to know where improvements can be made, and what techniques in refactoring yield what kind of results. The best way to learn is to post your code and get advice on how it can be improved. There are likely many techniques you are unfamiliar with which could benefit you much more than just using more cores on your PC.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord