2Theta Scan

This kind of scan is available only at experiments that have the diffractometer software installed.

#!/usr/bin/env perl
use Spectra; 
#
# 2-theta scan
#
Spectra::scan( type => "two_theta", 
	       range => 1, 
	       st => 0.2,
	       np => 11) or die " Failed to scan 2Theta";

If 2Theta is represented by a single motor, this kind of scan can also by executed as a normal scan (non-diffractometer scan), see section 10.9.2.