The following script does:
The full syntax of MCA() is given in 6.5.2.
#!/bin/perl
use Spectra;
$Spectra::SYM{ generic_mca_name} = "tst";
$ret = Spectra::mca(
adc => "exp_mca01",
channels => 8192,
comment => 'this is a comment',
include_motors => 1,
noconfirm => 1,
nodisplay => 0,
refresh_cycle => 1,
log_scale_y => 1,
sample_time => 1,
store => 1,
timer => "exp_t01",
update_time => 1);