|
|||||||||||||
02-17-2006 04:35 AM
Hi Robbie
Splendid idea
02-17-2006 09:51 AM
I agree with everything Robbie said, I have long wished for these features, especially the "break" feature. I think the condition terminal can keep it's original name, the user just has to understand the condition is actually compound: the condition boolean input and the N/auto-indexing. I think it should be an enable-able option by right clicking on the border of the for loop.
Speaking of "break", I have also long wished for a "return" or "End <owner>" capability similiar to other textual languages. However, I understand the dataflow programming for the output using these hypothetical primitive nodes could be complex, requiring the user to use additional local variables to make sure variables are retained correctly. Just a thought.
02-17-2006 10:29 AM
I like the Flex loop idea too. Merge the While and the For loop, add some pepper (start value, increment, type, stop.. great list altenbach) and salt (you need to know what you want, a lot of options.. for bugs
)
Oh, and I want both kinds of index (country and western) a free type one with x_0, dx and optional x_stop AND an index for my arrays at the same time.
And an optional boolean for first interation (no need to check if i=0 )
02-17-2006 10:38 AM - edited 02-17-2006 10:38 AM
Message Edited by Imaginatics on 02-17-2006 10:40 AM
Message Edited by Imaginatics on 02-17-2006 10:44 AM
Message Edited by Imaginatics on 02-17-2006 10:45 AM
02-17-2006 10:42 AM
02-17-2006 12:47 PM
02-18-2006 05:23 AM
Hi,
A break in a for would be nice. Right now, you need to do a lot of work to convert a for loop into a while loop. An option in the for loop to have a stop symbol would be great.
I think it's good to watch these points:
1. Keep it ELEMENTRY. Don't combine this feature with other features like error comparison, there are other ways to do that much better and in your own way (everyone wants that in a different way). Just boolean.
2. Keep it FAST. The preallocated auto indexing stuff is a major advantage of a for loop.
3. Keep it INTUITIVE. Right now, you know how many items go out. This should also be the case with the stop in place. So the preallocated array should be cut of when the loop is broken.
The difference between a while and a for will remain: a for loop has a predefined maximum #loops, which determines the size for preallocation of tunnel arrays. A while loop has no set maximum.
Passive indexing tunnels ? Hmm sounds nice ! Should be very well distinguisable though !
The zero elements input array is no problem at all. The while loop will not run, as the maximum #loops is 0.
Joris
CIT Engineering
02-18-2006 06:23 AM
02-18-2006 10:36 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.02-19-2006 06:13 AM
Hi Albert,
> At the moment a while always executes at least once !
Ah yes, I meant a for loop of course !
Joris
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page