Commands Listed in Alphabetical Order
from the instru
ment. Please reference the MAT-File Format document for detailed
information about the file header and data elements.
The 128-byte header is comprised of the following fields:
Descriptive Text (116 bytes):
MATLAB 5.0 MAT-file, Platform: <ID>, Created on: <date>
where:
<ID> is the instrument ID string of the form:
TEK/MSO4104B/SN C0
01023/FV v2.97061
<date> is the date/time of the form:
Tue Aug 6 18:30:28 2013
This 116-byte field is padded at the end with spaces.
Subsystem Data Offset (8 bytes):
This is always written as 8 ASCII spaces (0x20).
Version (2 bytes):
This is the MATLAB file format version number and is always written as
0x0100.
How this is read is determined by the next field.
Endian Indicator (2 bytes):
This is written as a 16-bit value of ('M' << 8) | 'I' and is used by the reader to
determine whether byte swapping is needed. If it reads as MI, then no byte
swapping is needed.
The pertinent instrument set
tings, comprised of center frequency, span and sample
rate are written as miMATRIX elements. Each of these elements have an ASCII
name and the values are miDOUBLE:
CenterFreq is the center frequency in hertz.
Span is the frequency span in hertz.
SampleRate is the sampling rate in samples per second.
Each of these is written as an miMATRIX element, a complex record of the
following format:
Array Type (4 bytes) = miMATRIX (14)
Array Size (4 bytes) = 56 + nameLen + padding
nameLen is the string length of the name
padding = (8 - (nameLen % 8)) % 8
2-600 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual