From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Error In and Error Out Clusters within VIs


@mikeporter wrote:

Which brings us back to the real mystery of NIWeek 2014: Why were there no changes in LV that were of any real substance?

Maybe this should be a new topic.

 

As for the Wait, yeah there is no legitimate reason NI can't do it.  That being said no company should make their own, OpenG has a nice one with the ability to not wait on error, and abort on an occurance.  Admittedly I've never used this feature but I like that it's there.

 

EDIT:  And wasn't there a wait express VI from some DAQ or Real-Time toolkit that has error in and out?

Message 11 of 24
(717 Views)


@mikeporter wrote:
I hadn't seen the discussion, but I can sum it up in two letters:

B and S

I can't say I agree with (m)any of the things that aristos posted on the idea exchange, but I've never once gotten the impression that he was BSing people. 


To be clear, my comment was not personal -- to tell the truth I didn't notice who posted the response. Although I have known Aristos for many years, his name on the post was immaterial to the basic point that the arguments in the post were and are logically indefensible.
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 12 of 24
(702 Views)

All he says in that post is that they evaluated it and agree its easy to implement, but believed there would be unintended side effects because adding error wires to the connector pane implies that you should wire them up. I've seen people do some really silly things with error wires, so the argument doesn't sound unreasonable to me.

 


It's a primitive.  There is no wires nor sequence structure in a primitive.


Yes, yes, but hopefully you get my point anyway. I don't disagree with the idea of having a second VI on the palette to add these wires/features, but I think the primitives should only have things in them which can't be done in regular LabVIEW code.

 

0 Kudos
Message 13 of 24
(694 Views)

The Wait(ms) can be done in regular LV code.  I use to always use the old Wait Function ( Wait+ (ms).vi  attached) and then they stopped including (after 8.6 maybe?) and added the new clumsy, big iconed wait vi that only had seconds input.

 

I finally made my own that had both ms and seconds (Pause.vi). It can be with or without error wires. Just cause a vi has error wires doesn't mean you have to use them. For functions that clearly would no generate errors and for which you do not need flow control, it's perfectly ok to leave the error wires disconnected.  I didn't add output but it could be added easily enough.  I now use this exclusively.

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
Download All
0 Kudos
Message 14 of 24
(662 Views)
The old wait+ was part of traditional daq (and still is). The new Delay function that takes seconds is not clumsy, has error in/out, and is only big if you choose it that way.
0 Kudos
Message 15 of 24
(650 Views)

Time Delay is the function I was thinking of.  It is an express VI (BOOO) but you can right click and view it as an icon and it basically is just a wait with error in and out, and the wait is in seconds not ms.  But it is native.

0 Kudos
Message 16 of 24
(647 Views)
Yeah, I've been using Delay for years since it is naive and available at all customer sites. I don't see the point of modifying the wait(ms) just to add error connections. Having one that skips the wait if an error exists is something different.
0 Kudos
Message 17 of 24
(637 Views)
And abort on occurance...not that anyone uses that feature of the OpenG one.

 

0 Kudos
Message 18 of 24
(634 Views)
The express VI also operates in a fundamentally different way. It does not insert any wait time. Every time it gets called it tells you if the defined time period has elapsed.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 19 of 24
(614 Views)

@mikeporter wrote:
The express VI also operates in a fundamentally different way. It does not insert any wait time. Every time it gets called it tells you if the defined time period has elapsed.

Mike...

You are referring to the Elapsed Time VI.  There is also a Time Delay VI that is literally a Wait (ms) with a multiply by 1000 (since the input is in seconds).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 24
(607 Views)