|
|||||||||||||
03-31-2006 01:39 AM
04-06-2006 12:11 PM


04-06-2006 01:57 PM
crelf wrote:
You could maybe right click on the loop and remove the wait node to make it run as fast as possible (like it is now), but it should be there by default...
This one is a bit tricky, because one might want to be able to thread-switch every 10th or 100th iteration, so it should depend on the input. Even with the time terminal present, we need to be able to turn it off at runtime. Maybe a negative time input would act like the wait statement is not present?
Personally, I would also prefer "Wait next ms multiple" instead of "wait ms".
There are definitely many cases where we don't even want a 0ms wait because they are pure computations with finite iteration counts. Look at e.g. the abx subVI in lev-Mar fitting. I also often use a quick Newton-raphson loop to calculate equations that cannot be solved for Y. Upgrading old code should definitely NOT introduce a 0ms wait in every loop so this needs ot be addressed.
Still, I am very aware of the problem you are trying to solve. I have seen code with 20+ parallel infinite while loops without a single wait. SInce LabVIEW will ping-pong between such loops every 55ms (http://ideasinwiring.blogspot.com/2005/05/55ms.htm![]()
04-07-2006 08:53 AM

04-09-2006 01:56 AM
Hi Guys
I don't understand the question for a wait until next ms. At least not in the way it is implemented in windows at the moment. I see everybody filling in 10 or 50 or 100 ms wait to get nice timing and when you lokk at the processing sytem you see a machine that is doing almost nothing and then every 10 ms jumps up being activated more every 50ms and even worse on a 100 ms point. The realtime implementation is OK So don't synchronize with the system timer please.
04-09-2006 08:52 AM
Albert wrote:
I don't understand the question for a wait until next ms. At least not in the way it is implemented in windows at the moment. I see everybody filling in 10 or 50 or 100 ms wait to get nice timing and when you lokk at the processing sytem you see a machine that is doing almost nothing and then every 10 ms jumps up being activated more every 50ms and even worse on a 100 ms point. The realtime implementation is OK So don't synchronize with the system timer please.
There's been a misunderstanding: I'm not talking about sycnronization at all - I'm talking about forcing a beginner user to have some sort of "timing" in their loops - not for timing's sake, but for thread swapping's sake - nothing to do with synchronization.

04-09-2006 11:33 AM
04-10-2006 08:29 AM

04-24-2006 01:34 PM
I love it.
While your at it, why not make a "right click" option to hide the annoying little iterator?
05-02-2006 09:32 AM
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page