'Live Time' to FIO Files

Here is an example of how to write a Tango attribute, like liveTime, to the comment section of FIO files:

  1. You have to use 'online -tki'
  2. The function Spectra::fio_comments has to be added to the file /online_dir/TkIrc.pl. An example for this function can be found below.
  3. The flag “Additional FIO comments” has to be enabled. This is done in the scan menu (Flags).

 
#
# somewhere in /online_dir/TkIrc.pl
#
sub Spectra::fio_comments
{
    my $line = ""; 
    if( search_device( "mca10"))
    {
        $line .= "MCA10 live " . 
            Spectra::tng_attrDoubleRd( "MCA10", "livetime"); 
    }
    return $line;
}