LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
MarcoMauri

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

34 Comments
MCKman
Member

This is a variation made into a VI that I often use. A typical application is in a loop with a long delay between iterations. I often don't want to w..a..i..t..... for the loop to exit when an error occurs.

 

 

Error Controlled Millisecond Timer.png

 

 

akeister
Member

I've long preferred wait functions that I can interrupt. Here are my attempts to produce an interruptible timed wait.

 


Timed Wait.png

 

Then you have the Stop Timed Wait.vi here:

 

Stop Timed Wait.png

 

I've written my own merge errors VI, so you might have to replace that with the built-in LabVIEW primitive (which I don't like because it causes superfluous wire bends) in order to be able to run it.

Adrian C. Keister, Ph.D.

Certified LabVIEW Architect
Certified Professional Instructor

B.S. in Applied Physics/Computer Hardware and Software Systems, Mathematics, 2001, Grove City College.
M.S. in Mathematical Physics, 2004, Virginia Polytechnic Institute and State University.
Ph.D. in Mathematical Physics, 2007, Virginia Polytechnic Institute and State University.
Dennis_Knutson
Knight of NI

For an interuptable wait, it's pretty simple to just use the Wait On Notifier or Wait On Occurence. The Wait On Notifier has the error in/error out connections.

SteenSchmidt
Trusted Enthusiast

The 'wait on occurrence' technique is exactly what the Wait function from the GPower Timing toolset uses for premature abort of the wait:

 

Wait.png

CLA, CTA, CLED & LabVIEW Champion
CM411
Member

Good idea, it should be applied at all timing functions

ouadji
Trusted Enthusiast
Les__Bartel
Member

For applications such as this, it would be handy to have a pair of pass-through terminals that would accept ANY type of data (numeric, cluster, array, etc.) on the input and pass it through to the output.

magicbean
Member

Seems like a good idea - I end up framing it in sequences which looks cluttered. I like the ideas of passing out the ms timer value and (usually!) skipping on errors too.

tyk007
Active Participant

I could not Kudo this fast enough.

BillMe
Active Participant

As long as it SKIPS THE WAIT on an input error, I'm all for it.