Cause:
- Preadjustment diagnostics required persistent log files for each slot.
- Phase boundaries and file storage outcomes were not clearly visible.
Solution:
1. Added per-slot file logging
- Store logs under C:\Tbf\Logs\Preadjustment.
- Create a separate directory for each batch and a separate file for each slot.
- Capture phase diagnostics, Completion SQL messages and STOP requests.
- Support normal execution and simulation independently of the diagnostic window.
2. Added phase formatting
- Add batch and phase headers with slot and start time.
- Include phase result and duration in file footers.
- Display headers in the corresponding slot diagnostic window without duplicate file entries.
3. Added file storage diagnostics
- Display the full log path and creation/write status per slot.
- Confirm successful writes after closing the file.
- Report write failures and incomplete logs.
4. Added background file writing
- Buffer and write log entries without blocking serial reception.
- Preserve parallel slot execution and existing calibration behaviour.
5. Increased revision
- Updated revision from 3.9.3146.109 to 3.9.3146.110.