Hi Michael,
MichaelS wrote in news:506500000008000000F7980000-
1042324653000@exchange.ni.com:
> I converted 2D array into a spreadsheet string and attempetd to write
> it as a key value into a configuration file. This worked just fine.
> However, when I attempted to read this multiline string using Read
> Key.vi, I got just the first line in return (see two vi's attached).
I use Config files all the time. Much more user-friendly than the
Registry. They are a Microsoft thing really, rather than LabView, and
come from Windows 3.11. Each value is limited to one line, so when you
write a spreadsheet string with end-of-line characters in it, you're
effectively breaking the .inf file 😞
The solution? Try putting a "Search and Replace String
" after your
"Array To Spreadsheet String". Wire "Replace All" with a TRUE constant,
and wire "Search String" with a string in "\" view and enter \r\n (or do
0A0D in Hex view) and then then wire Replace String with a ";"
Now your .inf file will look like:
[Array]
Data=1.0000,0.0000,0.0000;0.0000,2.0000,0.0000;0.0000,0.0000,3.0000;
When reading it, just reverse the search and replace strings above.
I hope this helps,
Andrew