The Daily CLAD

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

Re: String Constants with '\' Codes Display

SercoSteveB
Active Participant

Assuming Sring Constant is set to '\' Codes Display.  What are the contents of Boolean Array Out following execution of the VI?

New Line.png

a) {T,F,F}

b) {F,T,F}

c) {F,F,T}

d) {T,T,T}

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

A


Learning LabVIEW since January 2013
nik35324
Member

A

dhanalakshmi.ja
Member

Ans is A (T,F,F)

shree_bala
Member

A

Baltur
Member

A) \n is line feed.

I just now noticed you started again this year, so welcome back.

MrStevenUND
Member

A

sac0071
Member

A

ashwinilele
Member

A

AuZn
Member

The End of Line constant should be platform dependent. On Windows it is /r/n, on Mac it is /r, and on Linux it is /n.

However, given that there is no Linux version of Labview, this question has a unique answer of A.

Could some one with a Mac version of Labview test if EOL is /r there? i.e. if change the string to \r, would the result be {F,T,T}?

crossrulz
Knight of NI

AuZn wrote:

However, given that there is no Linux version of Labview

Yes there is (System Requirements for LabVIEW Development Systems and Modules).  Plus the newer cRIO uses an RT version of Linux.

I was waiting for somebody to mention different targets.  So for a Windows or Mac, you have A.  For Linux, the answer is {T,F,T}.  But since that isn't an option, the BEST answer is 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
AuZn
Member

Oh I forgot about the RT targets. I actually have a myRio with RTlinux on it. I can confirm that the answer is {T,F,T} on the target.

pksusic
Member

A

eleshrudra
Member

answer is A

R.Elesh
chan1989
Member

answer is A. Gotta figure out what the difference is between normal display and the backlash display.

M.P.Bharghavi
Member

Ans:A

{T,F,F}