04-07-2010 04:02 PM
Hi, all
I have attached a VI and its profile data excel file.
The code for this VI is very simple, the experiment data length is 1,000,000, and the reference signal data length is 200, but it cost a lot time to execute, can anyone give me any advice how to reduce its execution?
I understand in some ways, the execution time relate to how good my PC is, I am trying to figure out what kind of PC can collect 1,000,000/s first through a PCI-6251, and then save useful information after signal processing. So I want my code is very efficient.
thanks
Lyn
04-07-2010 04:45 PM - edited 04-07-2010 04:48 PM
You are looping through your for loop 999,800 times...that will take a while.
04-07-2010 04:58 PM
04-07-2010 07:35 PM
If you're using LabVIEW 2009, you might gain some performance by setting your loop to a parallel loop.
See this youtube demo: http://www.youtube.com/watch?v=pSHJRotX7mY&feature=related
04-07-2010 11:06 PM
04-08-2010 06:47 AM
Thanks, everyone. Unfortunately, I don't have Labview 2009.
Checked website, it cost a lot money to purchase it.
Lyn
04-08-2010 08:13 AM - edited 04-08-2010 08:15 AM
04-08-2010 08:15 AM
Lyn,
What you are doing looks a lot like convolution. Can you get the results you need by using any of the various Convolution VIs?
Lynn
04-08-2010 08:27 AM
HI,
Converting to subroutine where possible was best for improve performance.
Cheers, Peter.
04-08-2010 09:52 AM
Thanks, Lynn
it is sort of convolution, I have tried using convolution VI, it looks like works with a little extra code, but performance is much better.
Lyn