Here is an example of how to write a Tango attribute, like liveTime, to the comment section of FIO files:
Spectra::fio_comments has to 
be added to the file /online_dir/TkIrc.pl. An 
example for this function can be found below. 
 
#
# 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;
}