LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why isn't \t working in string constant writing to Excel?!

Hi,

I have a string array going into an write to excel.vi (i've changed this vi to accept string arrays instead of data). Now I have one string that's going into my array in this format.

Chanel1\tChanel2\Ratio\n

Excel doesn't seem to read any of these delimeters and thus the above is exactly what i get inside the file. How should I indicate delimeters in a string constant??
0 Kudos
Message 1 of 4
(2,799 Views)
Right click on your "Chanel1\tChanel2\Ratio\n" string constant and make sure that '"/" Codes Display' is selected. From your description of what's happening, it sounds like the constant in in 'Normal Display' mode so the text is written as it looks.
(and maybe you want "Chanel1\tChanel2\tRatio\n" to get a second tab)?
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 2 of 4
(2,787 Views)
I had the same problem in 7.1 and ended up concatenating a string using the tab constant instead of \t. That worked.

Richard
0 Kudos
Message 3 of 4
(2,778 Views)
That pesky right-click. Thanks a lot. Works great.
0 Kudos
Message 4 of 4
(2,777 Views)