LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with spaces at the beginning and end of strings generated for a header

Hello,
 
I'm having difficulties with writing a "space free" header that I wish to attach to the top of an n-dimensional array of numbers. I have been able to append the various lines of the header to the array but I am always getting a space at the beginning and end of each string, which in my case generally corresponds to a line in the text output file. As it turns out these spaces lead to a problem when I try to open the text file in analysis software.
I've attached an example of the way I'm appending the header to the array and also shows what the "spaces" are...(the example is actually courtesy of altenbach from a previous inquiry..thanks again for the helpSmiley Very Happy)
 
Anyway if anyone has an idea on how to correct this problem I'd appreciate the assistance.
 
best,
ss
 
 
0 Kudos
Message 1 of 3
(2,486 Views)
Hi there
Go to the large 'Format into String' on your diagram. on the format constant you have %s %s %s etc. remove the spaces between each %s (%s%s%s etc.) and you should get what you need.
 
Ian
Message 2 of 3
(2,481 Views)

Ian thanks...it works!  One more thing done and a only a million to go!

Thanks again

best

SS

0 Kudos
Message 3 of 3
(2,470 Views)