viSci Posted August 7, 2018 Report Posted August 7, 2018 I often use variant attributes as a quick and dirty dictionary. I found out that I could flatten my 'variant dictionary' and save the flattened string to a file. I tried to unflatten the saved string and reconstitute the variant and its attributes but am getting an error 116 (Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.) I am using a variant constant because the variant dictionary I created has no datatype other than the attributes which are all 1D string arrays. I am beginning to think that this might not be possible to do, but thought I would check in to make sure I am not overlooking something. Quote
Darren Posted August 7, 2018 Report Posted August 7, 2018 Can you attach a simple write VI and read VI that demonstrate the issue? Quote
Neil Pate Posted August 7, 2018 Report Posted August 7, 2018 Works fine with the example I have thrown together Quote
viSci Posted August 7, 2018 Author Report Posted August 7, 2018 Started putting together an example and found that the flatten and unflatten work correctly. The problem was in the file write which had the 'convert EOL' option enabled. Thanks for your help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.