LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Brain Cramp "AND No Error"

I've used this many times: paul_cardinale_0-1670621648494.png Allow a TRUE to pass through only if there is no error.

 

But deep in a piece of code, I had this mistake: paul_cardinale_1-1670621800532.png It took me forever to spot it.  It was hard to track down because it would manifest only occasionally when called from a series of Drag-Over events.

 

I could chalk it up to old age; but I've been having brain cramps my entire life.

 

 

 

"If you weren't supposed to push it, it wouldn't be a button."
Message 1 of 17
(1,964 Views)

One more reason I would use the typical OR or AND functions instead of Compound Arithmetic if there are only 2 nodes.

 

But this is quite possible when using Compound Arithmetic with a bunch of nodes and with the invert logic per node.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 17
(1,913 Views)

... one problem is also that the invert circle gets completely camouflaged by the error wire here.

 

There are plenty of ideas. Personally I like this version, which can actually eliminate the invert circles completely, making use of that unused blank space. 😄

 

altenbach_0-1670781102894.png

 

Message 3 of 17
(1,848 Views)

@altenbach wrote:

... one problem is also that the invert circle gets completely camouflaged by the error wire here.

 

There are plenty of ideas. Personally I like this version, which can actually eliminate the invert circles completely, making use of that unused blank space. 😄

 

altenbach_0-1670781102894.png

 


I like it, but I would keep the circle:

paul_cardinale_0-1670801454026.png

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 17
(1,828 Views)

@paul_cardinale wrote:

@altenbach wrote:

... one problem is also that the invert circle gets completely camouflaged by the error wire here.

 


I like it, but I would keep the circle:

paul_cardinale_0-1670801454026.png

 


But then you could interpret that as: negate the inverted input...

Certified LabVIEW Architect
0 Kudos
Message 5 of 17
(1,786 Views)

@thols wrote:

@paul_cardinale wrote:

@altenbach wrote:

... one problem is also that the invert circle gets completely camouflaged by the error wire here.

 


I like it, but I would keep the circle:

paul_cardinale_0-1670801454026.png

 


But then you could interpret that as: negate the inverted input...


Do you interpret this paul_cardinale_0-1670847583225.png "negate the inverted input"?

"If you weren't supposed to push it, it wouldn't be a button."
Message 6 of 17
(1,779 Views)

@paul_cardinale wrote:

@thols wrote:

@paul_cardinale wrote:

@altenbach wrote:

... one problem is also that the invert circle gets completely camouflaged by the error wire here.

 


I like it, but I would keep the circle:

paul_cardinale_0-1670801454026.png

 


But then you could interpret that as: negate the inverted input...


Do you interpret this paul_cardinale_0-1670847583225.png "negate the inverted input"?


oops 😉

Certified LabVIEW Architect
0 Kudos
Message 7 of 17
(1,766 Views)

@paul_cardinale wrote:.

Do you interpret this paul_cardinale_0-1670847583225.png "negate the inverted input"?


 

We talked about that almost 10 years ago. 😄

 

We don't have no reason not to discuss this not again... not!

0 Kudos
Message 8 of 17
(1,750 Views)

I think I had brain cramp for a moment, first when I posted, and now.

 

But I was not wrong about the double negation. I had just filtered that out since the beginning of time.

Certified LabVIEW Architect
Message 9 of 17
(1,746 Views)

I usually use the second case anyways (sans inverter). The output of the compound node is most of the times wired to the loop termination terminal and I want to have the loop stop on error OR when the condition has been met (usually trying to connect or such, searching something in an array, or similar). The boolean is then also wired outside of the loop with "Last" tunnel mode and used directly as indication of success to perform some further things on the found resource.

 

And yes those inversion dots are sometimes difficult to notice. I had screen configuration where they would sometimes completely disappear and you had to let LabVIEW refresh the diagram completely to make them appear again. And on high resolution screens they can get so tiny that they are almost invisible anyhow, even when LabVIEW doesn't "forget" to draw them.

Rolf Kalbermatter
My Blog
Message 10 of 17
(1,734 Views)