LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting Array to String challenge

Thanks to everyone for the suggestions.  Eventually I came up with this (but it took lots of tries):

cdl.png

OK, why the 7F: I really want an empty string as the delimiter; but if you feed it an empty string, it uses a space instead.  However if you feed it a 7F, it uses an empty string (gee, how obvious! 🙄).

0 Kudos
Message 11 of 27
(483 Views)

Right after I posted that, I got another idea:

try fmt 3.vi Snippet.png

0 Kudos
Message 12 of 27
(481 Views)

@paul_a_cardinale wrote:

OK, why the 7F: I really want an empty string as the delimiter; but if you feed it an empty string, it uses a space instead.  However if you feed it a 7F, it uses an empty string (gee, how obvious! 🙄).


Interesting. Does that solve this old idea ???

 

(Sorry, I just got power back after a 25 hour outage (very high wind and devastating wildfires nearby, you've see the news 😞 ). Was hanging off laptop and cellphone hotspot, running almost out of juice).

0 Kudos
Message 13 of 27
(464 Views)

@paul_a_cardinale wrote:

Right after I posted that, I got another idea:

try fmt 3.vi Snippet.png


Do these last two options have any advantage or are those just the RG solutions? It sounded like you're being serious about these and I don't see why not to use the initial solutions posted to the thread, which are certainly more readable and easy to understand.


___________________
Try to take over the world!
0 Kudos
Message 14 of 27
(452 Views)

Yeah Christian,

 

how arer things going on in Venice Beach? Are you far enough away from the fire areas? I keep my fingers crossed that everything goes well for you.

We have around 0°C and snow-rainy wheather in Berlin, so it's quite the opposite of your situation.

Greets, Dave
0 Kudos
Message 15 of 27
(431 Views)

I'm a simple man. 🙂

Yamaeda_0-1736414724891.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 27
(427 Views)

@paul_a_cardinale wrote:

Thanks to everyone for the suggestions.  Eventually I came up with this (but it took lots of tries):

cdl.png

OK, why the 7F: I really want an empty string as the delimiter; but if you feed it an empty string, it uses a space instead.  However if you feed it a 7F, it uses an empty string (gee, how obvious! 🙄).


Corrections:

  1. If you feed it an empty string, it uses a tab.  Apparently it's checking for a null string to decide whether something has been wired.
  2. If you feed it a 7F, it uses the 7F; it's just that the string indicator doesn't display the 7F's.

 

0 Kudos
Message 17 of 27
(391 Views)

@tst wrote:

@paul_a_cardinale wrote:

Right after I posted that, I got another idea:

try fmt 3.vi Snippet.png


Do these last two options have any advantage or are those just the RG solutions? It sounded like you're being serious about these and I don't see why not to use the initial solutions posted to the thread, which are certainly more readable and easy to understand.


I don't know what "RG solution" means.

0 Kudos
Message 18 of 27
(389 Views)

@paul_a_cardinale wrote:
I don't know what "RG solution" means.

Short for this... 😄

 

 

0 Kudos
Message 19 of 27
(382 Views)

@altenbach wrote:

@billko wrote:

I'd actually rather see how Rube-ish we can get it.  😉


challenge accepted....

 

Rubeformatting.png


Well, I suppose that's a nice try; but it doesn't hold a candle to some of the psychotic code that I've seen over the decades.

0 Kudos
Message 20 of 27
(363 Views)