• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - Data Logging
  • How to Setup Logging in Automation System
  • 5.0.0

Framework - Data Logging CDP Logger Configuration Manual

How to Setup Logging in Automation System

Introduction

The CDP Logger is a component for logging values and events from the system. This example demonstrates how to create a simple application for logging a sine signal.

Note: By default, the CDP Logger component also logs all events from the system. This can be disabled by setting Event Logging to false in the CDP Logger component.

Setting up CDP Logger

Setting up the Control System

Follow these steps:

  • Create a new CDP Studio system and name it CDPLoggerDemo.
  • Click on the default application called CDPLoggerDemoApp and go to the Table Editor tab.
  • Expand CDPLogger from Resource tree.
  • Add a CDPLogger component.

Configuring CDP Logger

Configure Datastore

Next, add a CDPCompactDatastore to the CDP Logger component.

  • Click on CDPLogger component.
  • Expand CDPLogger from Resource tree.
  • Add CDPCompactDatastore.

Add Sine Component

Now we need something to log. A Sine component will generate sine signal.

  • Click on CDPLoggerDemoApp.
  • Expand CDPCore from Resource tree.
  • Add a Sine component.

Add Value to Log

  • Click on Sine component in the Project tree
  • Find signal called Output.
  • Add it to CDP Logger component by right clicking and selecting "Add to Logger...".

Configure the Logged Signal

Open again CDP Logger component. Under LoggedValues table you should now see the signal called Output - the name set here will become the friendly name of the logged value and is used by some tools when viewing data.

Add a Delta of 0.1 to it. Value change is only logged if it changes more than Delta. This is used to save disk space.

After completing these steps the system should look like this:

How to Run the Tutorial

To run the tutorial from CDP Studio, select Configure mode, right-click on the system project and select Run & Connect. See the Running and Connecting to the System tutorial for more information.

Testing the System

When connected, view logged data using CDP Studio Analyze mode. Historic Data functionality.

For more options how to view data, see Viewing Data section in CDP Logger manual.

Framework - Data Logging CDP Logger Configuration Manual

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2024 CDP Technologies. Privacy and cookie policy.

Return to top