• 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
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Examples and Tutorials
  • Button Basics 1: Communication

Creating a Database Graph GUI Button Basics 2: Visual Feedback

Button Basics 1: Communication

Introduction

This example is part of the Button Basics series, which also includes Visual Feedback and Page Navigation. Together, the examples demonstrate the fundamental ways buttons are used in CDP Studio UI.

This example focuses on communication, showing how buttons send commands, values, pulses, and states to control-system components. A Sine component visualizes the effect of each action so you can immediately see how the interaction changes the signal.

The entire series implements the concepts from the original Button Examples tutorial, presenting them as clear, runnable examples inside actual applications.

Message Sending

This example shows two buttons sending CM_ACTIVATE and CM_SUSPEND commands to a Sine component. The graph below displays the resulting waveform, allowing you to see how suspending and resuming the component affects the signal output.

Value Sending

This example demonstrates sending numeric values to a component input. Two buttons set fixed amplitudes (2 and 10), while a third button opens a numeric keypad dialog for entering a custom value. The Sine graph shows how each value affects the signal amplitude.

Pulse Sending

This example shows a button sending a pulse: the remote value goes high while the button is pressed and returns to zero on release. Component logic reacts to the falling edge of the pulse and toggles the amplitude multiplier. The graph shows both the pulse and the resulting sine output.

State Sending

This example demonstrates toggling a remote boolean value. Each press switches the value between 0 and 1, and the button’s checked visual state mirrors the actual remote value. The graph shows the on/off transitions over time.

How to Run the Example

To run the example from CDP Studio, open Welcome mode and find it under Examples. Next, in Configure mode right-click on the system project and select Run & Connect. See the Running the Example Project tutorial for more information..

Creating a Database Graph GUI Button Basics 2: Visual Feedback

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 2025 CDP Technologies. Privacy and cookie policy.

Return to top