We have a system which generates binary log files. These are a fixed length with 2 byte preamble and post amble. We would like a simple programme to convert the file into a CSV.
Simple conversions need to be done to the fileds in the strings.
## Deliverables
The user should be able to choose the source file location and name and the generated file location and name.
Other user options should include the output files units for speed and distance.
The binary file contains odometer (distance) in um. The user should be able to choose output distance as either mm, cm, km or miles.
The binary file contains speed in um/s. The user should be able to choose output speed in m/s or miles/hour.
A new output file should be generated after 1 million lines of data has been written.
The output CSV file should have 2 header lines.
Line one will be the column title:
Status, Odometer, Speed, Shaft Position
Line Two will be the units eg:
Stat, cm, m/s, Pos.
an example binary file and description are attached.