Data from the A/D converter are stored in the so called binary format (*.BIN). This is a 16 bit Integer format. The samples of the channels are stored in a row (sample 0 of channel1, sample 0 of channel2, sample 1 of channel1, sample 1 of channel2, ...) The BIN file stores additional information in the file header like channel names, calibration coefficients, resolution of the A/D converter, ...
Header | Bin Channel Save Format | Data
File header | Channel information | Integer 16Bit
The header is written when the filename is entered. If the recording is started, the Bin Channel Save Format is added to the file and data are written. At the end of the recording, the start address of the data [Byte] is written to the first 16 bits of the File Header. !!! THIS IS VALID SINCE RECORD VERSION 5.30 !!! Older versions did not overwrite the file header with the complete header size. If you want to process the binary data with MatLab, you can search for the numbers: 0x00 0x00 0x00 0x01 0x73 They occur once for each channel. At the end of the Bin Channel Save Format, some additional 0´s are added: 0x00 0x00 0x00 0x01 0x73 0x00 0x00 0x00 0x00 After these numbers the data are starting. In addition to the BIN file, a trigger file (*.TRG) with the same name is generated to save the digital trigger information. This file contains a list of trigger numbers and its occurence. The TRG file is used for the online processing of the data and will be converted to a *.T00 file if a BIN file is converted to Channel Format.