Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

less than 1 ms

array size is 12800 .and i am doing proc 1 and giving 1 ms wait and doing proc2.
where first and third i am getting time stamp , which is 25 s difference ,
i want to minimize the delay it is posible!!!!!!????????????how i want to caluculate the time manually,?it is processors deponds upon ?
------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 1 of 4
(2,943 Views)

Hi

yes, don´t wait one ms in the loop. You can take 0 ms or delete the wait function. Why do you need the wait?

Mike

0 Kudos
Message 2 of 4
(2,939 Views)
He might need to wait to give the processor some time now and then.

But you don't need to wait every cycle. If you have a counter (for instance
"i" from the for loop), you can use Quotient & Remainder to wait every X
iterations. Simply wire "i" and e.g. 50 to the Q&R, and put the wait inside
a case with the selector wired to the remainder. If you put the wait in case
0, and make the other case default, the loop will wait every 50 iterations.

Fiddle with the value. You should be able to wait as little as possible,
while still giving away enough processor time to let it do some other stuff.

A 0 ms wait results in a thread switch, and that might decrease performance.

Regards,

Wiebe.


0 Kudos
Message 3 of 4
(2,911 Views)
thanks a lot

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 4 of 4
(2,889 Views)