For the needs of diagnostics of the longitudinal electron beam characteristics at the first Polish free electron laser (PolFEL) project, a Coherent Diffraction Radiation (CDR) system is being developed and tested. It will allow for nondestructive bunch length measurement based on the power balance of CDR radiation collected by Schottky diodes in different ranges of sub-THz radiation. The first tests and measurements will be performed at the end of the Solaris synchrotron injector linac, where the beam profile is already known from previous studies. In addition the camera system with automatic focus was developed and tested. In this contribution the theoretical background of the measurement, calculations and first experimental steps will be presented. Proceedings of the 11th International Beam Instrumentation Conference, IBIC2022, Kraków, Poland