Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Exercise: Checking Data Logging with Object

  1. Create a Data

Log Configuration
  1. Create an analog tag of type INT16 and name it Temperature.

Image Removed

  1. 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.

Image Removed

Image Removed

  1. Insert the following code inside the newly created script to simulate the change in temperature throughout the day.

Image Removed

Next, we will create a data logging model. Click on Tools>Data Log Editor to open the data log editor window.
  1. 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.

Image Added

  1. 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.

Image Added

Image Added