By applying the frequency conversion technique to 4-dimethylamino-N-methyl-4-stilbazolium tosylate crystal, a monochromatic terahertz (THz) measurement system, including both generation and detection, has been developed over quite a broad frequency band, from 1.85 to 30 THz. In the case of frequency upconversion detection of THz waves, for the first time, we used gratings instead of filters to tackle the tough phase-matching conditions for broadband operations. By synchronizing the rotation of two gratings to extract the frequency upconverted signal, the infrared (IR) pumping beam can be tuned freely over 300 nm with decent diffraction efficiency and sufficient isolation between the weak frequency upconversion signal and the strong IR pumping beam to be realized. Such a large tuning range has overcome the limit of commercial filters with a fixed passband, while such a high optical density value has been beyond the limit of commercial tunable filters. Consequently, the proposed frequency domain system gives the largest THz frequency band. Unlike THz time-domain spectroscopy systems in which a fs laser is applied and broadband THz pulses are applied, our system works based on a ns laser and it can function at a single THz frequency with random frequency access ability from pulse to pulse.