• 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
    • CDP Linux
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • CDPSignalChannel
  • 5.1.0

CDPSignalChannel Class

(ServerIO::CDPSignalChannel)

The CDPSignalChannel template-class is an ACDPBaseChannel<> implementation based on CDPSignal. More...

Header: #include <CDPSignalChannel>

Detailed Description

The CDPSignalChannel template-class is an ACDPBaseChannel<> implementation based on CDPSignal.

This class is final and IChannel interface members are threadsafe for user threads that run SynchronizeValuesIn() and SynchronizeValuesOut() through ChannelManager.

CDPSignalChannel<string> Specialization

CDPSignalChannel<string> has an additional member BinaryEncodedLength that can be specified to limit the size of the string. When BinaryEncodedLength is set to 0, the channel will behave as a dynamically sized channel, and automatically resize to match the content size.

When BinaryEncodedLength is set to a non-zero value, then the channel will be always encoded to that size, so that longer string values will be truncated and shorter values will be padded by zero characters. This can be useful in some I/O Servers, such as ModbusIO, to send and receive string data that always occupies a fixed amount of space.

Note: Some I/O Servers, such as ModbusIO can not fully handle dynamically sized channels (i.e. BinaryEncodedLength set to 0) as it will cause issues due to the string length and positioning of the data in the channels following this string channel.

Note: Custom buffer can be passed to the channel using ACDPBaseChannel::SetDataPointer(). Passing in 'nullptr' as a data pointer will make the CDPSignalChannel<string> use the internal buffer.

See also CDPSignalChannelFactory::CreateCDPSignalChannel, IOServer, ServerIO, ServerIO::ACDPBaseChannel, ServerIO::ICDPChannel, ServerIO::IChannel, ServerIO::CDPPropertyChannel, and ServerIO::ComponentStateChannel.

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

Return to top