Measurements and modelling of undulator radiation with a filter-photodiode detector