function [viewer, msgParser] = helperHDLADSBInitDisplays(LaunchMap,DataLogging,LogFileName)


% Create the data viewer object and configure
viewer = helperHDLADSBViewer('displayPER',true);

if (DataLogging)
    viewer.LogFileName = LogFileName;
    startDataLog(viewer);
else
    stopDataLog(viewer);
end

if (LaunchMap)
    startMapUpdate(viewer);
else
    closeMap(viewer);
end

% Create message parser object
msgParser = helperHDLADSBRxMsgParser;

% Start the viewer and initialize radio time
start(viewer)