LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait ms timer value

Will locate book.
0 Kudos
Message 21 of 27
(1,609 Views)

@dg_lbe wrote:
Will locate book.

Good becuase...

 


The reason for the While loop instead of the FOR loop was I read that using a while loop the CPU memory allocation desision is made once where as the FOR loop it occurs every time.  So I would then say this means its faster.  IS THIS NOT TRUE??????? 


 

my reply is "NOT TRUE"!

 

THere was a period of time between LV 6i and somewhere around LV 2009 when the exact inverse was true (For loop preallocates the output buffer once before it stats to execute) but the while loop was never faster in any test I ever did or anything I may have read.

 

Take care,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 22 of 27
(1,602 Views)

 


@Ben wrote:
THere was a period of time between LV 6i and somewhere around LV 2009 when the exact inverse was true (For loop preallocates the output buffer once before it stats to execute) but the while loop was never faster in any test I ever did or anything I may have read.

 

Ben, you are confusing me. Are you saying that something related to this question changed in LV 2010? In what way?

 

I would say that the FOR loop preallocates autoindexing outputs in any modern LabVIEW version.

0 Kudos
Message 23 of 27
(1,596 Views)

@altenbach wrote:

 


@Ben wrote:
THere was a period of time between LV 6i and somewhere around LV 2009 when the exact inverse was true (For loop preallocates the output buffer once before it stats to execute) but the while loop was never faster in any test I ever did or anything I may have read.

 

Ben, you are confusing me. Are you saying that something related to this question changed in LV 2010? In what way?

 

I would say that the FOR loop preallocates autoindexing outputs in any modern LabVIEW version.


Well confusing people is the last thing I want to do.

 

I agree with your above staement as is.

 

If I run across something definative, I'll share it.

 

Take care,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 24 of 27
(1,591 Views)

 


@altenbach wrote:

 

 

I would say that the FOR loop preallocates autoindexing outputs in any modern LabVIEW version.


This has been the well known behaviour of any LabVIEW version since at least 3.0 and most likely also in 2.x.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 25 of 27
(1,564 Views)

Sorry for the delayed response.  Attached is a sample of a deployed application that results in having a normal loop time of 35ms.  When the target laptop comes out of standby the time increases to 70ms.  The cure is to close the application and reload or have the power option set to never go into standby.  

 

Thanks.........  

0 Kudos
Message 26 of 27
(1,537 Views)

Sorry for the delayed response.  Attached is a sample of a deployed application that results in having a normal loop time of 35ms.  When the target laptop comes out of standby the time increases to 70ms.  The cure is to close the application and reload or have the power option set to never go into standby.  

 

Thanks.........  

Download All
0 Kudos
Message 27 of 27
(1,537 Views)