The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Compound Arithmentic Vs Boolean Or

SercoSteveB
Active Participant

What are the values of Numeric Value 1 and Numeric Value 2 following execution of the VI?

Compound Arithmetic OR.png

NOTE:  Answers are in Hexadecimal

a) Numeric Value 1 = 0x00, Numeric Value 2 = 0x00

b) Numeric Value 1 = 0xAB, Numeric Value 2 = 0x00

c) Numeric Value 1 = 0x00, Numeric Value 2 = 0xAB

d) Numeric Value 1 = 0xAB, Numeric Value 2 = 0xAB

Comments
LordNobady
Member

D


Learning LabVIEW since January 2013
Musale
Member

Answer D

RAMESHB
Member

Answer is D.

   

    you put insted of A0 A and 0B B now you got 11 both out same.

crossrulz
Knight of NI

D

First of all, you should know that an OR is an OR.  So you should be down to A or D just because both indicators will have the same result.


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
LordNobady
Member

my problem is that I am used to differed boolean icons from my electronics study. I know how an or works.


Learning LabVIEW since January 2013
crossrulz
Knight of NI

LordNobady wrote:


                       

my problem is that I am used to differed boolean icons from my electronics study. I know how an or works.


                   

Yeah, I can never remember which of those "carrots" is the AND and which is the OR.  Luckily the normal functions look more like the OR and AND gates I learned in college.


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
2verb
Member

D

SercoSteveB
Active Participant

I remember it by comparing the symbol on the function against the letter 'A' if the symbol matches the shape of A it is an AND otherwise its an OR.

MrStevenUND
Member

D.

mini09
Active Participant

Same as well ....

SercoSteveB wrote:


                       

I remember it by comparing the symbol on the function against the letter 'A' if the symbol matches the shape of A it is an AND otherwise its an OR.


                   
mini09
Active Participant

Answer D ....

SercoSteveB
Active Participant

Answer: D.  Nice one LordNobady, Musale, RAMESHB, crossrulz, 2verb, MrStevenUND & gnshmrthy.

So clearly a bitwise operation, is it possible to do a logical operation on numerical values in LabVIEW,  or would you have to convert to a Bool before the operation

Balze
Member

I know it's an old thread, but would like to share my "Eselsbrücke"

(In germany a memory hook is called "Eselsbrücke" which means donkey bridge)

If you place an open triangle on its corner (like in the OR operation), it will fall to one side OR the other.

If you place an open triangle on the open side(like in the AND operation), it will rest on one side AND the other.