The function scan() invokes various types of scans, e.g.:
$ret = Spectra::scan( type => 'motor',
device => 'mot1',
start => 0,
stop => 10,
delta => 1,
comment => 'A Test Scan');