mpa3()

This function controls the MPA3 detector electronics.

$ret = mpa3( "halt");
$ret = mpa3( "save", "fileName");
$ret = mpa3( "start");
$ret = mpa3( "start", "time");
$ret = mpa3( "status");

fileName: full path specification'
status: returns 1, if 'on'
time: in seconds

e.g.:
$ret = Spectra::mpa3( "start", "3");
sleep(3);
while(1)

last if( !Spectra::mpa3( "status");
last if( Spectra::key() == 32);
Spectra::wait( 0.1);

$ret = Spectra::mpa3( "save", "d:/data/probe_00012_00001");

If a new set point is specified, Online also starts the ramp and waits for the voltage to reach the final value.