The Daily CLAD

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

Re: Boolean Palette Numeric Operations

SercoSteveB
Active Participant

What are the contents of Numeric Array Out following execution of the VI?

 

Boolean Pallete.png

 

Boolean Pallete Answers.png

Comments
nik35324
Member

A

Ellie90
Member

A

I8: byte signed integer, range: -128 to 127

127+not=-128

126+not=-127

...

1+not=-2

0+not=-1

 

If the data type is U8 which has the range of 0-255, then

0+not=255

crossrulz
Knight of NI

A


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
CataM
NI Employee (retired)

a)

 

not(00000001)=11111110

2's complement of (11111110)=00000010 which is 2 in decimal which means 11111110 = -2

MrStevenUND
Member

A

alexderjuengere
Active Participant

A,

with a little help of the Windows Calculator 😉

calculator.PNG

Matt-A.
Member

Had to convert to binary to see this one. 

 

A

simonj69
Member

A

SercoSteveB
Active Participant

Answer: A, nice one all. 

 

I thought this one was a little tricky (hiding the data type in the array indicator combined with the inversion) but everyone smashed it.