From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unflatten variant from string got error 122

Solved!
Go to solution

Hello,

In this VI, when I used a 13 characters string to write flattened data to a file, I got error 122 when reading and unflattening it back. But with string that was not 13 characters, the unflattening operation worked just fine.

 

Any ideas ?

 

 

 

0 Kudos
Message 1 of 3
(3,601 Views)
Solution
Accepted by topic author zigbee1

Make sure you turn OFF the "Convert EOL".  That could change your flattened data on you.  Alternatively, you could read and write using a binary file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,509 Views)

 crossrulz is totally right about EOL interpretation when writing files. This has to do with 13 chars length string.

Thanks for helping me out ! 🙂

0 Kudos
Message 3 of 3
(3,474 Views)