Coffee Machine scenario SECTION 3 Advanced Tutorial Border Style = THICK Display Mode = POPUP Top = 0 Left = 505 Height = 582 Width = 295 2. Add a 'Chart' Graphical Object for displaying alarms in real time. Configure the object to graph the 5 resource levels (coffee_level etc), with appropriate labels 3. Use the Workspace to remove the Display On Run option from the popup menu. 4. Add a 'Trend Graph' Graphical Object for displaying water_temperature and milk_temperature . Configure as preferred, scaling from 0 to 200. 5. Add 2 sliders and link to water_temperature and milk_temperature to simulate changing temperatures. 6. Add a 'Close' button with an animation to close the page. 7.
Open Main page and add an animation to the "Graphs & Charts" button to display the new page called Graphs . 3-1-10 Data Logging In addition to simple trending, we can add comprehensive Data Logging. First create the items to log. 1, 2, 3… 1. Open the Workspace Editor and select the Data Logging tab. 2. Right click and select Add DataSet… 3. Right click the added Data Set and select Add Item… . Add the item Milk Temperature and enter milk_temperature in the expression field. 4. Repeat to add an item called Water Temperature for point water_temperature . Then create a page to view and export the data and control logging: 1, 2, 3… 1.
Make a new page with the following properties Page Title = Datalog Border Style = THICK Display Mode = POPUP Top = 0 Left = 505 Height = 582 Width = 295 2. Use the Workspace to remove the Display On Run option from the popup menu. 3. Add a button to automatically open the data log viewer using the command " OpenLogView("Dataset1", "Milk Temperature,Water Temperature", "") " 4. Add a button to export data to CSV using the command " ExportLog("Dataset1", "Milk Temperature,Water Temperature", "CSV", 0, "c:\coffee\export.txt") " 5. Add a button to manually restart logging using the command " StartLogging("Dataset1") " 31