def read_channel(model, channel_name, monitor_name='monitor'):
 return getattr(model, monitor_name).channels[channel_name].val_record[(-1)]

def read_channel ( model , channel_name , monitor_name = 'monitor' ) : return getattr ( model , monitor_name ) . channels [ channel_name ] . val_record [ ( - 1 ) ]
returns the last value recorded in a channel .