LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenating multiple numeric data into string

1. I have to contain multiple numeric data into string. 2. Attached is VI. 3. problem is on front panel it seems very clean since I have created tabs. But on block diagram it seems very cluttered. How can I reduce it?
0 Kudos
Message 1 of 6
(3,352 Views)

No VI attached.  You may need to put it into a zip file first.

 

But multiple numerics can be easily formatted into a string.  You could use the Array To Spreadsheet String or you could use the Format Into String.  Tab and comma are the two common delimiters used here.


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
0 Kudos
Message 2 of 6
(3,336 Views)

Sry abt that. Attached is VI & in zip folder also.

Download All
0 Kudos
Message 3 of 6
(3,327 Views)

The Format Into String does it all for you.  This example only has the first 4, but you can have as many inputs as you need.  I highly recommend reading the help article on this function.


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
0 Kudos
Message 4 of 6
(3,313 Views)

I had done the same as you can see in block diagram.

I think I didn't phrase Q right.

 

Actually I have two many numerics so it takes large space in block diagram. Like in front panle I have categorized them into tabs so they seems better organized.

In block diagram it seems a big mess. Also placing while loop on large space is again a cumbersome process.

 

0 Kudos
Message 5 of 6
(3,305 Views)

Now that I have thought about this a little more, I think what you really want to do is make a cluster with your 4 items and then put that cluster into an array.  This would eliminate the need for the tab control and allows you to process all of the elements using a FOR loop.  Cleans up both the front panel and the block diagram.


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
0 Kudos
Message 6 of 6
(3,289 Views)