-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue reading strings #28
Comments
@carlm83 Could you tell me which application on which operating system produced the TDMS file in question? Could you also tell me whether any of the strings contain non-ASCII characters? |
LabView 2019 created the TDMS file. The computer it is x64 running on is Windows 10 Pro, version 10.0.18362 build 18362. There should be no non-ASCII characters. |
@mettekou Any update on this? Thanks |
@carlm83 I have been able to reproduce the issue and have stepped through the code with your example TDMS file and channel path as an input. It seems the computed offset for the given channel's raw data is off by one byte. I have not been able to address this issue yet, as I do not fully understand its cause. |
@carlm83 If this issue is still relevant to you and your application can target .NET 5.0, note that |
Thank you, Dylan, for letting me know about this. Yes, it is still of interest! I will give F# a try. Thanks again.
From: Dylan Meysmans <[email protected]>
Sent: Sunday, January 10, 2021 11:04 AM
To: mikeobrien/TDMSReader <[email protected]>
Cc: McDow, Carl <[email protected]>; Mention <[email protected]>
Subject: Re: [mikeobrien/TDMSReader] Issue reading strings (#28)
This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.
@carlm83 [github.com]<https://urldefense.com/v3/__https:/github.com/carlm83__;!!NJahUI48xw!F5KEfQyUG89BMaRM4zKx4fBBgjum_t1fE-MRmG9ss0fKIB7uiTa4ZGNkhXu8sXY$> If this issue is still relevant to you and your application can target .NET 5.0, note that FSharp.Data.Tdms [github.com]<https://urldefense.com/v3/__https:/github.com/mettekou/FSharp.Data.Tdms__;!!NJahUI48xw!F5KEfQyUG89BMaRM4zKx4fBBgjum_t1fE-MRmG9ss0fKIB7uiTa4ZGNk6h0DBNk$> reads your TDMS file just fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [github.com]<https://urldefense.com/v3/__https:/github.com/mikeobrien/TDMSReader/issues/28*issuecomment-757499627__;Iw!!NJahUI48xw!F5KEfQyUG89BMaRM4zKx4fBBgjum_t1fE-MRmG9ss0fKIB7uiTa4ZGNkRjG1VW4$>, or unsubscribe [github.com]<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AOI2GHZ7VMF6V2G5PTOPEM3SZHFVJANCNFSM4KJFAX3Q__;!!NJahUI48xw!F5KEfQyUG89BMaRM4zKx4fBBgjum_t1fE-MRmG9ss0fKIB7uiTa4ZGNkealZ-0g$>.
|
@carlm83 Note that you do not have to switch to F# to use FSharp.Data.Tdms, it also provides an API for C#. |
I have a large file that I'm trying to read. Sample is attached. All of the numeric values appear to read fine, but some of the strings are corrupted.
Here is the code I used to read the data:
Attached is the output data. See "Channel: 1850-5 Lower Element" for an example of the data corruption.
The Excel importer add-in reads the TDMS file fine so I don't believe it is corrupted.
tdms_example.txt
String Issue Sample.zip
The text was updated successfully, but these errors were encountered: