Mythen

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

<hw>
...
<device>
    <name>mythen</name> 
    <type>type_tango</type> 
    <module>module_tango</module>
    <device>pXX/mythen/exp.01</device> 
    <control>tango</control> 
    <hostname>hasppXX:10000</hostname>
</device>
...
</hw>

It can be operated as a virtual counter:

   if( $method =~ /reset/i)
   {
     Spectra::mythen_start( "mythen", $Spectra::SYM{ scan_name}, $Spectra::SYM{ sample_time}, $Spectra::SYM{ sindex}); 
     return 1;
   }

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

Note that the online -tki manual shows how parameters of this detector can be set by a beamline-specific-code widget.