02-26-2009 02:37 PM - edited 02-26-2009 02:39 PM
Dear all,
In my code, I have a while loop doing fast grabbing (sampling)
how can I update other numeric controls in the front panel when the while loop is running?
right now, once I input a number into this numeric control, the computer seems to be no response at ell. it looks like computer is focusing on the while loop.
any ideas are appreciated.
thanks
jack
Solved! Go to Solution.
02-26-2009 03:00 PM
Are you sure the program is in the while loop? The code below has a very fast while loop and the control updates fine.
I'm inclined to believe your program calls a program inside the while loop that is looping indefinitely, thus holding up the calling while loop.
Please clarify/post the code in question.
02-26-2009 04:55 PM
Posting your code would be very helpful - or at least a screen shot. Otherwise we are basically shooting in the dark.
Mike...
02-26-2009 08:46 PM
02-26-2009 11:11 PM - edited 02-26-2009 11:11 PM
thank you all for your reply
here is my code
one while loop is to processing the image grabbing..
the other one is to reponse the event to change the numeric control's value
every time when I input the numeric 1, the code seems stop..no response at all.
is it becuase the way I code two while loops in parallelll isn't correct?
thanks
Jack
02-26-2009 11:15 PM
02-27-2009 01:26 AM
igg_integrin wrote:
every time when I input the numeric 1, the code seems stop..no response at all.
is it becuase the way I code two while loops in parallelll isn't correct?
thanks
Jack
Hi Jack,
Please see here.
Your parallel placing of while loops may not be a problem at all for LV, but only the non-availability of any small loop delay inside the top loop.
Also, please check your CPU usage, eventhough if it is a dual core PC, as Ravens Fan has suggested.
02-28-2009 03:27 AM - last edited on 04-18-2024 02:50 PM by Content Cleaner
Hi Jack,
Try using Timed Loop ,where u can set the prority and which loop to run in which processor.
check out this link
Rgds,
Venky
03-01-2009 08:21 AM
03-02-2009 09:26 AM
thank you all,
finally I found a way to solve it..
jack