The valve piston (3) is coupled through the valve rod (5) to a linear drive (6) which is designed to transfer force to the piston via the valve rod. The linear drive can be an electro-motorised linear drive or linear motor. The valve piston force acts substantially parallel to a longitudinal direction of the valve rod. Independent claim describes method for controlling valve stroke where valve piston is moved through the valve rod with a linear drive.