A very flexible DSP-based controller for on-line test and control of industrial processes