The Daily CLAD

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

Re: Append True or False String

SercoSteveB
Active Participant

What is String Out following execution of the VI?

Append True False String 10_12_2014.png

a) SteveLikesLabVIEW

b) JohnCodesLabWindows

c) SteveCodesLabVIEW

d) JohnLikesLabWindows

Comments
kasliwal
Member

D.

for loop run 3 times (autoindexed by string array)

Append True/False chooses:

1st iteration, False string

2nd iteration, True string

3rd iteration, False string.

All the strings are appended to each other because they are returned by shift register.

Final output is sent after loop completion.

prajwal.prithviraj
Member

Answere is D

JohnLikesLabWindows

Good Question to understand this palate

mini09
Active Participant

Yeah D agree with kasliwal.

A.Bernau
Member

Yes, D.
But I had to think about the AND function:
bitwise ([2 and 1] is [10 and 01] is [false] )
or
logical (2 means true, 1 means true, and true and true is true)
in ANSI C every value greater than 0 is true.
The "blue" integer output of AND was the key for my problem
a logical AND should have a green output.

But maybe this approach is senseless in LabVIEW, I don't know.
Haha ANSI C in good context to LabWindows 😉
Have a nice day everyone

LordNobady
Member

D


Learning LabVIEW since January 2013
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
crossrulz
Knight of NI

Andreas23 wrote:

But I had to think about the AND function:
bitwise ([2 and 1] is [10 and 01] is [false] )
or
logical (2 means true, 1 means true, and true and true is true)


                   

Any logical functions (AND, OR, XOR, etc) are always done bitwise for integers.


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

D

SercoSteveB
Active Participant

Answer: D.  Nice one kasliwal, prajwal.prithviraj, gnshmrthy, Andreas23

LordNobady, crossrulz & MrStevenUND

Bitwise against Logical comparisons.  Logical functions are always done as BITWISE as crossrulz points out.

mssorters
Member

D