Exercise: Checking Data Logging with Object
Create a Data
Create an analog tag of type INT16 and name it Temperature.
Click on Tools>Script Editor to open the Script Editor window. Here, you will click the + icon and select Create New Script. In the Edit Script window, you can add a name to the script and select the type of script as Startup with a running period of 0 milliseconds.
Insert the following code inside the newly created script to simulate the change in temperature throughout the day.
Logger Model. Go to Tools > Data Log Editor. Click the + in order create the new Data Logger Model. Once created, name it “Counter”. Set the Logging Options to Periodic and 5 Seconds. Click OK to confirm the changes and exit the screen.
Go to Insert > Data Log Table. Click and Drag the Data Log table. Once the table is created, select it, and under Data Logger Model select the Counter that was created. This will link it to the Data Logger table.