LabVIEW Idea Exchange

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!
Top Kudoed Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Wait (ms) with error pass-through

Hi!

Maybe this has been already requested elsewhere and I'm missing it....

but it would be useful to have a Wait (ms) with connectors for error in and out.

This can help keeping the BD clean...

Marco

18613iCF039EA34765F743

58 Comments
Knight of NI

Every company I visit has created this subVI in some way, shape, or form.  Like ChrysalTech, I really like having the wait function being 1 terminal high.  I took the Wait function in Peter Blume's book and adapted it to add a little more functionality (option to wait when there is an error).  But the size is the best part because you can keep other wires (VISA resource, file refnum, etc) straight instead of wrapping around the block.  When I manage to get my company to standardize on a user library, this is the first thing I am putting in it.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Member

This idea was discussed in the document "Wait function - now with an error terminal" DOC-12373.

 

I would recommend to an additional optional Boolean input ('skip on error'). If this input is activated the vi would not wait if an error is pending. This additional input could be helpful and would reduce long response time delays on errors.

Member

Like a lot of folks, this has been in my personal library for a long time.  I recommend never waiting if there is an incoming error rather than having an optional input.  That would make it simpler and it would behave like all other built-in functions, which for the most part do nothing if there is an error in.  

 

If you need to wait, you should be clearing the error condition first.

Knight of NI

A long time ago I got bit using Wait +(ms).  I was waiting during the milisecond clock roll-over.  I've had a custom delay ever since that first checks to see if rollover will occur.

 

This is a roll- your- own type of thing I believe since there really is no solution that is both fool proof and optimized for CPU usage. 

Member

This VI would be fairly easy to implement in your own code archive, so no breaking due to lack of OpenG, and no waiting for NI to officially include it.  Rex1030's subVI is exactly what you want, I believe.

Trusted Enthusiast

National Instruments need to look through all of the vi's and look to do this where appropriate.

Tim
Yanfeng, Global Automotive Interiors
Holland Michigan
Member

Funnily enough I wrote a sub VI to do the same thing about 4 years ago and have been using it ever since. It's a good idea to have it as a standard VI and fits very comfortably with the notion of data flow/synchronisation. The only thing I did differenyl was pass out the millisecond timer value to maintain full compatibility with the LV millisecond timer VI.

 

21257iBE7F6FC032F773E7

 

 

Member

this is absolutely necessary and is strange that it's still not in existence. obviously you can create your own simple sub-vi like people have mentioned, but all that does is add to your source code and muck it up with little patch vi's. i hate placing frame sequence structures with a timer in it just to wire the error line through it. alas, for now i'll just use a homemade version... c'mon NI, this would be a quick fix!

Knight of NI

I don't understand all of the comments about the missing functionality. All you have to do is use the Delay function in new code. Surely you can convert milliseconds to wait to seconds to wait. The fix exists and has for quite a while.

Member

personally i try to avoid express vi's as they seem to be bulky and slower than regular functions...