The Daily CLAD

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

Re: Don't be coerced into anything

SercoSteveB
Active Participant

What are the values of Boolean Out 1 and Boolean Out 2 following execution of the VI?

 

NOTE:  The representation of the constants on the left hand side are as shown in the labels.

 

Coersion Dots 1.png

 

a) Boolean Out 1 = FALSE, Boolean Out 2 = FALSE

b) Boolean Out 1 = FALSE, Boolean Out 2 = TRUE

c) Boolean Out 1 = TRUE, Boolean Out 2 = FALSE

d) Boolean Out 1 = TRUE, Boolean Out 2 = TRUE

Comments
crossrulz
Knight of NI

D


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

D

qubirt
Member

D

Matt-A.
Member

The signs say.... D True True

PriyadarsiniS
Member

@SercoSteveB wrote:

What are the values of Boolean Out 1 and Boolean Out 2 following execution of the VI?

 

NOTE:  The representation of the constants on the left hand side are as shown in the labels.

 

Coersion Dots 1.png

 

a) Boolean Out 1 = FALSE, Boolean Out 2 = FALSE

b) Boolean Out 1 = FALSE, Boolean Out 2 = TRUE

c) Boolean Out 1 = TRUE, Boolean Out 2 = FALSE

d) Boolean Out 1 = TRUE, Boolean Out 2 = TRUE


Hello Steve,

The Answer is D, as addition operation gives output in the representation of U16, which equals -2 in I16 format and 65534 in U16 format.

 

We can't help everyone, but everyone can help someone Smiley Happy

 

CataM
NI Employee (retired)

d)

MrStevenUND
Member

D

SercoSteveB
Active Participant

Answer: D.  Nice one all.

levonsg
Member

D

https://images.youracclaim.com/size/340x340/images/2edb5b1a-9414-44e1-8519-c774fc6dd079/36015_Certificate_Badges_FINAL__1__NI_Instructor_v5.png
cobbPP
Member

Coming from a code generation (Simulink coder) background this is very untidy if one was generating safety critical C-code. 

I understand what is being achieved here.