Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread Philipp Mühlmann
...need better glasses :-)..thanks a lot 2016-02-21 14:10 GMT+01:00 JLan : > Well, remember to read a the small print in the help files before changing > version :) > > 5.4.1 help, mget(): > l long > > 5.5.1 help, mget(): > l long long int > i int or long int > > The definition of long and long

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread JLan
Well, remember to read a the small print in the help files before changing version :) 5.4.1 help, mget(): l long 5.5.1 help, mget(): l long long int i int or long int The definition of long and long long however is a bit open https://en.wikipedia.org/wiki/C_data_types. JÅ -- View this mes

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread Philipp Mühlmann
OK, but why did it work with Scilab 5.4.1? Thanks, Philipp 2016-02-21 12:26 GMT+01:00 JLan : > Good that you got it fixed. > > 'ul' - unsigned long long int should be 8 bytes, but since uint64 is not > available in Scilab 5, it is nowhere to store it correctly. > > In Scilab 6 it is also problem

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread JLan
Good that you got it fixed. 'ul' - unsigned long long int should be 8 bytes, but since uint64 is not available in Scilab 5, it is nowhere to store it correctly. In Scilab 6 it is also problematic, since mgeti() does not correctly transfer all the bits. An unsigned long long little endian can ho

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread Philipp Mühlmann
changed the code from ...mget('1','ul',fid) to ...mget('1','ui',fid) Result = correct for both Scilab version. BR Philipp 2016-02-21 11:21 GMT+01:00 Philipp Mühlmann : > Sciab 5.4.1: > > pos before Time488. > > pos after Time 492. > > pos after MilliTime 496. > > T

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread Philipp Mühlmann
Sciab 5.4.1: pos before Time488. pos after Time 492. pos after MilliTime 496. Time1340097538. MilliTime 870. Scilab 5.5.1: pos before Time488. pos after Time 496. pos after MilliTime 504. Time

[Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-21 Thread JLan
Are the double numbers Time and Millitime the same in both versions? How many bytes do you acually read with 'ul'? (can check with mtell()). Is it unsigned long long integer? Converting it to double may cause lost prescision. Jan Å -- View this message in context: http://mailinglists.scil

Re: [Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-20 Thread p
Are the double numbers Time and Millitime the same in both versions? How many bytes do you acually read with 'ul'? (can check with mtell()). Is it unsigned long long integer? Converting it to double may cause lost prescision.   Jan Å ___ users mai

[Scilab-users] mget at Scilab 5.4.1 and 5.5.1

2016-02-20 Thread Philipp Mühlmann
Dear all, I have a binary file which contains some time data that I want to extract. in Scilab 5.4.1 my code does work: fid = mopen(FILE,'rb'); // switch to position of time information mseek( pos ,fid,'set'); Time= mget(1,'ul',fid); // time in seconds MilliTime