Add an event command to clear one or more data logs

Create an event to clear data logs. Add a clear data log command to clear one or more data logs, or all data logs at once.
Prerequisites
Create an event to trigger the command:
  • Touch press.
    Occurs when touching the item on the screen that is configured with the event.
  • Touch release.
    Occurs when releasing the item on the screen that is configured with the event.
  • Key press.
    Occurs when pressing the specified key.
  • Key release.
    Occurs when releasing the specified key.
  • Button behavior
    Occurs when releasing the button.
  • Project event
    Occurs when the executing condition is met.
To add event commands to clear a data log
  1. Select the graphic element configured with the touch or key event.
  2. In the
    Properties
    pane on the
    Events
    tab, select
    Add Command
    .
  3. Expand the
    Data Log
    category and select and configure the command:
    1. Data Log
      . Select
      All data logs
      or select a specific data log name.
    2. Status
      • Data log clearing in progress: 10.
      • Data log successfully cleared: 20.
      • Unable to clear data log. Data log is not configured: 30.
      • Unable to clear data log. Data log is not running: 40.
      • Selected data log does not exist: 50.
      • Clear data log command is already in progress: 60.
      • Unable to clear data log. Export is in progress: 70.
      • Unable to clear data log. Insert SD card: 80.
      • Unable to restart the cleared data log. Remove and replace the SD card: 90.
      • Unable to clear the data log. Try again or restart terminal: 100.
      The status of the data log in Numeric format (DINT). Status does not support binding to element properties. Bind this property to a controller tag to display the status code of the data log:
  4. Configure another command to clear additional data logs.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal