LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comma separated string

Solved!
Go to solution

I have a string that comes in from an external instrument. When it is read, it appears in a format like this:

"10.55

11.25

13.43

15.68"

The number of entries varies. I need to get this string into a comma separated string that is later concatenated with another string then written to a csv file.

 

So how do i get the above entry into this: "10.55, 11.25, 13.43, 15.68" ?

Thanks

0 Kudos
Message 1 of 4
(2,435 Views)

Find out what end of line character is being used (\r, \n or \r\n) and simply use the search and replace VI to replace all instances of the EOL with a comma.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(2,430 Views)
Solution
Accepted by topic author ENGRLAB

There are lots of ways. I would use search and replace. See attachemt for an example.

 

 

0 Kudos
Message 3 of 4
(2,429 Views)

You guys beat me to the answer Smiley Wink

0 Kudos
Message 4 of 4
(2,421 Views)