I need to split a binary file into 6 variables, two contain tempurture (3bytes), two contain pressure (3 bytes) and two contain time (2 bytes). The file contains multiple readings, each reading being 16 bytes (8 bytes per channel), stored on a single file which could range anywhere from 1kb to 10mb. What I need to do is split a reading from channel A into its 3 variables, and channel B into it's 3 variables and then run the data with some calculations (to get some real numbers, which is produced by running the HEX values contained in the binary file to some coefficients) Plot the data and then move on to the next reading in the file. The issue I am having is the logic needed to read the 16 bytes from the file, do the split, get my calcs, then go back to the file and get the next reading. This is because the data is stored sequentially on the file, with no characters used to split the data. I feel like my brain is going to explode as I have been fighting this for 3 days and I am getting frustrated to the max! Help!!!!! Thanks in advance, drinks are on me!!!!!
TOTAL 16 BYTES
XXX XXX XX XXX XXX XX
A TEMP A PRESSURE A TIME B TEMP B PRESSURE B TIME