NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
altenbach

Looping Input Tunnels!

Status: New
by Knight of NI ‎06-06-2012 01:28 PM - edited ‎06-06-2012 01:31 PM

When autoindexing on a WHILE loop input tunnel, we get the default value for the datatype after we run out of elements on the autoindexing array. I can think of several scenarios where it would be useful to simply start over with the input array.

 

I propose a new input tunnel type (looping) which would do exactly that: index the elements to the end of the array, then start over from the beginning, ad infinitum (or until the loop stops).

 

(The same would of course also be useful for FOR loops. Here it would not be used to determine the loop count, because it never runs out of elements.)

 

Here's how it could look like in the code. (On the right, I show explicit functional equivalents).

 

Comments
by Knight of NI ‎06-06-2012 01:40 PM - edited ‎06-06-2012 01:42 PM

Note that I use the audio terminology of looping, which might be confusing because we already have loops in the code. I think it is OK, but I am of course open to better naming ideas. :smileyhappy:

 

  • looping?
  • recyling?
  • repeating?
  • reusing?
  • ...
by Member Wart on ‎06-06-2012 03:40 PM

Since it is still indexing the array I'd like to see the "index" stay..

 

  • infinite index?
  • looping index?
  • repeating index?
by Active Participant JW-L3CE on ‎06-06-2012 03:42 PM

+1 for repeating index... to matching autoindexing, lets call it repeat indexing

by Trusted Enthusiast on ‎06-06-2012 03:51 PM

I was thinking Looping Index

by Member GregR on ‎06-06-2012 05:12 PM

This is similar to the concept of a circular buffer, so you could call it circular indexing.

by Active Participant dthor on ‎06-06-2012 05:30 PM

Circular is definitely my vote.

 

Also, cool Idea! Not sure when I'll use it, but I definitely like it.

by Member GoofyWires on ‎06-07-2012 05:12 AM

This is useful for any case where there is some indexing action and it is not exactly terminal/wire related but rather index related.

I could have offered a change to the idea where we have a property node to the index terminal in order to create a secondary sub index terminal but it won't be general enough as well.

The most general option is to add a general cyclic block (wraps the reminder for easy of use) and to incorporate the conditional auto indexing tunnel in a more sophisticated way that handles cycles among other things in a pop up wizard once the tunnel is double clicked.

by Trusted Enthusiast on ‎06-07-2012 04:06 PM

I could definitely see this being useful if doing some sort of simulation.

by Active Participant GregS on ‎06-07-2012 04:09 PM

I vote for "Circular" too -- fits with the symbol as well.

by Trusted Enthusiast on ‎06-09-2012 06:44 PM

altenbach, can you enumerate some of the use cases that you have for this feature? I'm guessing you have some sort of "control this hardware" scenario in mind where you keep iterating over the same list of commands?

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
146
81
71
56
45
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page