The Daily CLAD

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

Re: Strings Constants with Normal Display

SercoSteveB
Active Participant

Assuming String Constant display property is set to Normal Display.  What are the contents of Boolean Array Out following execution of the VI?

New Line.png

a) {F,F,F}

b) {T,F,F}

c) {F,T,F}

d) {F,F,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
sac0071
Member

A

max_dvdt
Member

A

jeevanmtech
Member

ANS : A

line feed constant : Use this constant when you do not want to type in the backslash code for the character.

nik35324
Member

A

LordNobady
Member

A


Learning LabVIEW since January 2013
Fuzzy Me
Member

right answer is A, since display style of String Constant is normal dispay(\n) which correspods (\\n) in code display.

And (\\n) is not equal to (\n) line feed (1st comparision)

And (\\n) is not equal to (\r) carriage return (2nd comparision)

And (\\n) is not equal to (\r\n) carriage return  and line feed (3rd comparision)

ashwinilele
Member

A

MrStevenUND
Member

A

Baltur
Member

A

TobyC
Member

A

pksusic
Member

A

dhanalakshmi.ja
Member

Ans is A

sk_a
Member

B

saikiran_m
Member

A

Condition : String Constant display is Normal Display

Alex3d
Member

Ans is A

natasftw
Active Participant

All of the A's in here made me doubt my B.  Running the code, B is the answer I get every time (both in \codes and Normal Display settings).

crossrulz
Knight of NI

natasftw wrote:


                       

All of the A's in here made me doubt my B.  Running the code, B is the answer I get every time (both in \codes and Normal Display settings).


                   

Mind supplying a couple of snippets?  I have a feeling you inputted "\n" in the \Codes display and then just switched to normal dispaly.  If you were in \Codes, it should show "\\n".


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
natasftw
Active Participant

I just used the snippet from above.  It actually didn't change as you'd expect.  And now that I've thought about it more, the behavior I saw is likely a bug.  The shape of the constant changed and the content appeared blank.

If I create a fresh string constant, set it to normal, and add the \n I get the result from A.  Thinking about the answer, it makes sense.  \\ is required to use codes so it's not surprising it'd be viewed differently in normal display.

eleshrudra
Member

its B.  {T,F,F}

When use "\n".

when i used "\\n" thne the answer is A.

if i am wrong some one please feel free to explain. servo steave B. please correct me .

R.Elesh
crossrulz
Knight of NI

eleshrudra wrote:


                       

its B.  {T,F,F}

When use "\n".

when i used "\\n" thne the answer is A.

if i am wrong some one please feel free to explain. servo steave B. please correct me .


                   

What was the display mode of your constant?  If you have your string in \Codes, then the display should show "\\n".  If in normal display, it should show "\n".  When it comes to this situation, it is best to supply a snippet of your own for us to check.


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

A

i have one problem,by arduino with LINX library from vi package manager,  i am counting analog pulses and that counter is counting contineously, now i want to measure number of count occurs in every one second, that value i want to extract

please check vir vi.jpg

crossrulz
Knight of NI

That question is completely unrelated to this CLAD question.  If you are having problems writing a program, I recommend you use the forums.


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
Not applicable

A - Said the whole class. Great opportunity to demonstrate the Snip It tool and show string display modes 🙂

madhu3566
Member

i have cleared my CLAD exam...thank u Steve sir.....

Gomathy
Member

Thank you steve..this blog has helped me a lot to get through CLAD.

eleshrudra
Member

thank you.

R.Elesh
leidong3024
Member

A

N.UdhayaKamali
Member

A

M.P.Bharghavi
Member

Ans:A

{F,F,F}

Gab008
Member

A

Kuddo welcomed
CLAD-CTD