encode and write coinc window to ODB