I am writing binary data as attached in writeBin.vi
Then I use the following Matlab code to read the binary data to Matlab:
fid = fopen('c:\temp\data.bin','r');
data=fread(fid,'double','b')
cl=fclose(fid);
But it reads senseless data. I write data in Big-endian order in LV and I follow this in Matlab so can somebody tell me where is the problem?
If I write double 0-9 it reads in Matlab
data =
2.122e-313
5.2998e-315
5.305e-315
5.3076e-315
5.3102e-315
5.3115e-315
5.3128e-315
5.3141e-315
5.3154e-315
5.316e-315
I know that it is not strictly LabView question but I appreciate any help
Thanks
Message Edited by ceties on 05-22-2007 10:01 AM
LV 2011, Win7