PCO4000 Camera

A PCO4000 Camera is introduced to Online by the following entry in /online_dir/online.xml:

<hw>
...
<device>
    <name>pco4000</name> 
    <type>type_tango</type> 
    <module>module_tango</module>
    <device>p06/ccd/pco4000</device> 
    <control>tango</control> 
    <hostname>haspp06:10000</hostname>
</device>
...
</hw>

The PCO can be implemented as a virtual counter:

 

if( $method =~ /reset/i)
{
    return Spectra::pco4000_start( "pco4000", $Spectra::SYM{ scan_name} . "_",
                                   $Spectra::SYM{ sample_time},  
                                   $Spectra::SYM{ sindex}); 
}

if( $method =~ /read/i)
{
    while( Spectra::tng_state( "pco4000"))
    {
       Util::log( "waiting for pcocamera"); 
       Spectra::wait( 0.1); 
    }
    return 1;
}

Notice that the online -tki manual contains an example of how to create a beamline specific code widget for the PCO4000.