LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Anil_Reddy

concatenate with separator

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

Concat ( ',', a, b) should result in a string a,b This way, block diagram looks better in the case we concatenate many strings together.
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
6 Comments
AristosQueue (NI)
NI Employee (retired)

Can you post a screenshot of the block diagram that you're imagining? I do not know what terminals you're wanting to see added to the Concatenate node from the text description.

RandyP
Member

Hmmm... might Array to Spreadsheet String be (essentially) what you're looking for?

23416i9705A06602DB9B0C

 

Maybe you're trying to solve a different problem. But essentially, that function can add whatever delimiter you want between concatenated strings.

-Randy
-=--=-=-=-=-=-=-
Nothing like a good dose of LabVIEW to cure what ails ya'.
dthor
Active Participant

The Array to Spreadsheet String function is good, but only if you put everything into an array first. Plus then you're stuck with strings. 😛  

 

You'd probably be better off with Format Into String. It's much more powerful than concatenate, and will take up much less block diagram real estate when merging more than, say, 5 strings together. If you're concatenating many strings together, this is the way to go. Compare:

23450i41CC504A1CF7380923452i5C024BD3679F5244

JackDunaway
Trusted Enthusiast

There's a potential 'gotcha' when using Array to Spreadsheet String - as long as you're aware, you won't be caught off guard. The 'Format Into String' is not inherently scalable like 'Array to Spreadsheet String', but it's a nice solution if your strings are clustered or coming from multiple scalar sources.

Anil_Reddy
Active Participant

 

 

 24090i6886E1F074CE2934

 

something like this would be nicer..........

 

we can use format to string...but if we want to concatenate more?????.............

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.