change Scan API: set wavelength only if no resolution is given