# statusLogging

## PURPOSE

This function pushes the text in log_text to the log window specified by

## SYNOPSIS

function statusLogging(log_listbox_handle, log_text)

## DESCRIPTION

     This function pushes the text in log_text to the log window specified by
     its handle log_listbox_handle. This function appends the log window text.

     The input log_text should be formated as a cell array, containing each
     line of text as a row in the array. Max length of a line of text is 63
     characters.

     Last modified: 2013/03/12 (FLE)

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 function statusLogging(log_listbox_handle, log_text)
    0002 % This function pushes the text in log_text to the log window specified by
    0003 % its handle log_listbox_handle. This function appends the log window text.
    0004 %
    0005 % The input log_text should be formated as a cell array, containing each
    0006 % line of text as a row in the array. Max length of a line of text is 63
    0007 % characters.
    0008 %
    0009 % Last modified: 2013/03/12 (FLE)
    0010
    0011 % Get the current log window contents
    0012 log_contents = get(log_listbox_handle,'string');
    0013
    0014 % Append new log text
    0015 l = size(log_text,1)-1;
    0016 log_contents = vertcat(log_contents,log_text);
    0017
    0018 % Push updated log to the log window
    0019 set(log_listbox_handle,'string',log_contents)
    0020
    0021 % Make the last line the "active" line. This is to aid readability
    0022 set(log_listbox_handle,'value',length(log_contents))
    0023
    0024 % [EOF] statusLogging
    0025
    0026