stroke limitation for valve with optical