02-12-2016 10:28 AM
@RTSLVU wrote:
@ouadji wrote:From my point of view, I tend to agree with GregFreeman.
The definition of the and-gate is perfectly clear and precise.
A HIGH output (1) results only if both (or all) the inputs to the AND gate are HIGH (1)
Even if this behavior is mentioned in the help for the "AND array" function, I find this behavior is inappropriate. (this current behavior seems illogical to me)
With an empty boolean array ... all inputs are not "high" ... so, according to the definition of the and-gate, I think that the gate output should be" low"
(IMHO, with my poor english)
Yes but an empty array is equivalent to the "gray area" in TTL logic because it is neither high nor low.
A TTL gate output with a Gray level input is undetermined, at least LabVIEW has a determined output, that is a lot eaiser to trouble shoot than if it could go either way like a logic gate.
Standard TTL circuits operate with a 5-volt power supply. A TTL input signal is defined as "low" when between 0 V and 0.8 V with respect to the ground terminal, and "high" when between 2.2 V and VCC (5 V), and if a voltage signal ranging between 0.8 V and 2.0 V is sent into the input of a TTL gate, there is no certain response from the gate and therefore it is considered "uncertain"
02-12-2016 11:41 AM
Standard TTL circuits operate with a 5-volt power supply. A TTL input signal is defined as "low" when between 0 V and 0.8 V with respect to the ground terminal,
and "high" when between 2.2 V and VCC (5 V), and if a voltage signal ranging between 0.8 V and 2.0 V is sent into the input of a TTL gate,
there is no certain response from the gate and therefore it is considered "uncertain"
yes, i know that (since a long time)
... and ? ... What is the result of your reasoning ?? (about the original question)
02-12-2016 12:25 PM
To me, why it does what it does is academic. The fact that the result of "AND array" and "OR array" empty array cases are desired outcomes for the vast majority of my uses makes me happy in the same way that the default for Boolean is FALSE and the default for an INT is 0 does. 😉
02-12-2016 01:30 PM
@ouadji wrote:Standard TTL circuits operate with a 5-volt power supply. A TTL input signal is defined as "low" when between 0 V and 0.8 V with respect to the ground terminal,
and "high" when between 2.2 V and VCC (5 V), and if a voltage signal ranging between 0.8 V and 2.0 V is sent into the input of a TTL gate,
there is no certain response from the gate and therefore it is considered "uncertain"
yes, i know that (since a long time)
... and ? ... What is the result of your reasoning ?? (about the original question)
An empty array is equivalent to the "gray area" in TTL logic because it is neither high nor low.
A TTL gate output with a Gray level input is undetermined, at least LabVIEW has a determined output, that is a lot eaiser to trouble shoot than if it could go either way like a logic gate.
02-12-2016 02:36 PM
Indeed, a labVIEW logic gate with an undetermined output would be a real concern.
I agree with you. ...Phew! it's not the case.
This is not really the subject of the original question, but your reasoning is interesting.
02-12-2016 02:44 PM
@RTSLVU wrote:A TTL gate output with a Gray level input is undetermined, at least LabVIEW has a determined output, that is a lot eaiser to trouble shoot than if it could go either way like a logic gate.
That's why you should use Schmitt Triggered gates to handle this for you (they stay at the output logic level until the input goes out of the gray area)!