02-28-2019 01:04 PM - edited 02-28-2019 01:17 PM
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
02-28-2019 01:09 PM - edited 02-28-2019 01:10 PM
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)
02-28-2019 01:18 PM
Also please attach your vi. We cannot edit or run pictures.
02-28-2019 01:35 PM - edited 02-28-2019 01:36 PM
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.
02-28-2019 01:42 PM - edited 02-28-2019 01:48 PM
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)
(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.)