Continuous Move Scan

The following command shows how to start a continuous scan. While the motor constantly moves between the scan limits, the measurements are executed. The sample time is calculated using the sweep time and delta or np.

#!/usr/bin/env perl
use Spectra; 
#
# a continuous scan 
#
Spectra::scan( device => "mot11", 
	       start => 135,
	       stop => 140, 
	       delta => 0.5, 
	       scan_par => 20, # total scan time 
	       continuous => 1) or die " Failed to execute a motor scan ";