====== Log Viewer ====== The Log Viewer widget can be used to display the contents of a file in on the HMI screen. {{ :comfilehmi:log_viewer:log_viewer.png |}} After placing the Log Viewer widget on the screen, double-click it to open its properties window as illustrated below. In the properties window, specify the path of the file to display. //Storage Card// is the root of the SD card from within the HMI. {{ :comfilehmi:log_viewer:log_viewer_path.png |}} The Log Viewer will display the contents of the file. {{ :comfilehmi:log_viewer:log_viewer_simulation.png |}} ===== Example ===== Create a global timer event with an associated Action to log to a file every 15 seconds. {{ :comfilehmi:log_viewer:log_viewer_event.png |}} Set the path of the file to log to and use the //Text Builder// to specify the text to write. {{ :comfilehmi:log_viewer:log_viewer_action.png |}} {{ :comfilehmi:log_viewer:log_viewer_text_builder.png |}} Add a //Log Viewer// widget to the screen. {{ :comfilehmi:log_viewer:log_viewer.png |}} Double click the Log Viewer widget to open its properties window and specify the path of the file to read from. {{ :comfilehmi:log_viewer:log_viewer_path.png |}} Result. {{ :comfilehmi:log_viewer:log_viewer_result.png |}} ====== Video ====== {{ :comfilehmi:log_viewer:logvideoeng.mp4?1000x500 |}} [[comfilehmi:index#widgets| Back to ComfileHMI]]