Hello,
I have a signal in matlab .m format and I want to read it by using LabVIEW for further processing.
In matlab_file_reader you can see my approach. As documentation I have
used the document Mat-File format (you can download it from
http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf)
The signal is also attached bellow, I change the extention from.m to .txt to be able to attach the file
As you can see in the Endian Indicator of the Header Flag Field has a
value of "IM" which indicates that the signal should be read by
inverting the bytes order. I perform that and I start to read the
values. On the vi attached only the two first values are readed.
The values that I obtain are:
value 1 = 6
value 2 = 1
and they should be (when the signal is readed with matlab - load(signal) command):
value 1 = 0.6736
value 2 = -0.0911
as you can see there is something wrong. The data type that I read from
the Sub Element Tags are 32-Bit Unsigned and 32-Bit signed for the
first two values respectively, something that can not be if you see the
expected values.
Does anyone know where the problem could be?