r/LabVIEW • • Mar 26 '20

When you're testing out a new client-server link and you decide to give the server a lil' character before it relays the message...

Post image
43 Upvotes

7 comments sorted by

4

u/2_246_1010_78 Mar 26 '20

Why not iterate over the string in place and save the memory manager some work?

4

u/jackschmidt_notrades Mar 26 '20

you mean so you dont end up creating the int array? I didn't think of that, probably too busy giggling about bringing memes into my work code...

2

u/2_246_1010_78 Mar 26 '20

More to not grow the result string, if the length is known in advance. Can’t help worrying about that after LV has let me down so many times :)

1

u/jackschmidt_notrades Mar 27 '20

ah ok, so you're getting at the common issue of arrays and their need for contiguous chunks of ram? I have definitely wandered into this many times while slinging wires haha

15

u/[deleted] Mar 26 '20

You've discovered the true meaning of using LabVIEW; Spongebob screenshots in VI icons. I bow to you.

3

u/[deleted] Mar 26 '20

I like how "Hello" came out exactly correct.

2

u/Opteron_SE Intermediate Mar 26 '20

oh my god, why