SDD7 Example

After the SDD7 has been initialized it can be operated in the usual way. The initialization sequence is explained in the hardware section of the Online manual.

 
#!/usr/bin/perl 

use Spectra; 

$ret = clear_mca( "mca11", 0); 
$ret = start_mca( "mca11", 0); 
Spectra::sawft( "t1", 1); 
$ret = stop_mca( "mca11", 0); 
$ret = read_mca( "mca11", 0, "dat1", 4096);

The bank no. 0 has no meaning. It is supplied because the functions expect it. For the SDD7 the channel number is fixed: 4096.