LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assinging in the middle of a Concatenate String

Hi, I'm trying to learn LabView and doing some silly programs to practice, I created a program that generate a list, as shown on the pictures, although, I want to add an space after Number:

 

There is any way to add the space on the 3 small square, without the need of adding an extra block on my concatenated string and drop the wires connecting to it one by one?   Some way to do this automatically at a specified starting point ?

 

Edit: I added the program.vi file in here

Download All
0 Kudos
Message 1 of 5
(2,725 Views)

You can replace ALL your concatenate functions by "format into string" with two numeric inputs and a suitable format string containing the fixed parts.

 

(Posting by phone, can show an example later)

Message 2 of 5
(2,721 Views)

Also please attach your vi. We cannot edit or run pictures.

0 Kudos
Message 3 of 5
(2,710 Views)

Also, if you insist on using concatenate, you can add a node in the middle by right-clicking on the concatenate at the location you want the node, and choosing Add Input

 

Edit: But I would suggest following altenbach's advice.

0 Kudos
Message 4 of 5
(2,697 Views)

Here's what I had in mind. (I left out the file IO for simplicity. Note that you could use format into file for even less code)

 

Format.png

 

(also don't forget to place file refs in shift registers for more stable code. It might even be sufficient to write to the file in one swoop after the loop, unless the string gets gigantic.)

0 Kudos
Message 5 of 5
(2,692 Views)