Reference 22Keysight InfiniiVision 2000 X-Series Oscilloscopes User's Guide 289BIN data - usingsegmentedmemoryWhen saving all segments, each segment has its own waveform header (see“Binary Header Format" on page 289).In BIN file format, data are presented as follows:• Channel 1 data (all segments)• Channel 2 data (all segments)• Channel 3 data (all segments)• Channel 4 data (all segments)• Digital channel data (all segments)• Math waveform data (all segments)When not saving all segments, the number of waveforms is equivalent to thenumber of active channels (including math and digital channels, with up to sevenwaveforms for each digital pod). When saving all segments, the number ofwaveforms is equal to the number of active channels multiplied by the number ofsegments acquired.Binary Data in MATLABBinary data from an InfiniiVision oscilloscope can be imported to The MathWorksMATLAB®. You can download the appropriate MATLAB functions from theKeysight Technologies web site atwww.keysight.com/find/2000X-Series-examples.Keysight provides the .m files, which need to be copied into the work directory forMATLAB. The default work directory is C:\MATLAB7\work.Binary Header FormatFile Header There is only one file header in a binary file. The file header consists of thefollowing information.Cookie Two byte characters, AG, that indicate the file is in the Keysight Binary Data fileformat.Version Two bytes that represent the file version.File Size A 32-bit integer that is the number of bytes that are in the file.Number ofWaveformsA 32-bit integer that is the number of waveforms that are stored in the file.