Re: how to reduce the process time in a while loop

2004-03-30 Thread Dennis Knutson
The best way to decrease the time for processing is to reduce the processing that you do. If you've got computationaly intense processing, you may have to consider doing it after the program completes, doing it differently, or reducing the sample size. You don't say what exactly that you're doing.

how to reduce the process time in a while loop

2004-03-30 Thread Mudda
i am collecting data at 50 samples per second rate for 15 secs and processing it taking each data point. the process time is very long. the data is processed in a while loop. while loop executes more than 200k times per second then why is it taking so much time to process 750k samples? do i need to

Re: how to reduce the process time in a while loop

2004-03-30 Thread jhoskins
HI mudda This will probably sound a little crazy but if you are not putting in some type of wait function into your loop then you could be seding you processor to 100% therefore slowing down the process. this will free upi some processor time. i do this in all my applications because it allows the

Re: how to reduce the process time in a while loop

2004-03-30 Thread jhoskins
that was a good answer alot better than mine was but I tried. I guess that why I'm still a newby

Re: how to reduce the process time in a while loop

2004-03-30 Thread John Rich
The while loop will only process as fast as everything that you are doing within the loop. Without seeing your code it is difficult to determine what might be causing your slowdown. I suspect that the problem is likely with your array handling. If you'll post your code you will receive more help