DanBerge / TDMSReader.jl

Library to read National Instruments TDMS file format in native Julia.
MIT License
6 stars 5 forks source link

use 64-bit types explicitely, fix ns calculation #2

Closed jaakkor2 closed 4 years ago

jaakkor2 commented 4 years ago

Int is Int32 in 32-bit systems, Int64 in 64-bit systems. According to http://www.ni.com/product-documentation/5696/en/ , seconds signed 64-bit int, fractions unsigned 64-int.

Nanosecond argument should not contain decimals. Fix the scaling. Before this, loading a tdms-file with InitTimeStamp other than 0 fails with error like this ERROR: InexactError: Int64(0.90372025)