LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

replacing a space with tab

I have multiple lines of data that are space delimited and i need to change it to a tab delimiter. I am trying to use the search and replace string function but it is not working for me. It appears a simple concept and I cannot understand why it is not working. Can someone modify my VI to get it to work. I don't think you need a loop to do each line as the replace all bollean is set true.
Thanks
0 Kudos
Message 1 of 5
(3,168 Views)
The constants you used as inputs weren't set to '\' codes display. Right click on this setting and you'll see that you have \\s for space and this can't be matched. Its fixed in attached version. You can check on the indicators by right clicking and also set the '\' codes display setting.
Message 2 of 5
(3,168 Views)
Attached is a modified version of your vi. The \s and \t you used are each interpreted as two characters (view them with Hex Display) hence the reason for the results you got.
Message 3 of 5
(3,168 Views)
Thanks 🙂
Thats done the trick
0 Kudos
Message 4 of 5
(3,168 Views)
Thanks for replying
Both you and Andrew provided the solution required
Thanks
0 Kudos
Message 5 of 5
(3,168 Views)