pubsub support for structure type variable

Questions regarding the use of the High Perfomance SDK for Server development

Moderator: uasdkhpc

Post Reply
ReidLi
Full Member
Full Member
Posts: 6
Joined: 15 Aug 2023, 06:39

pubsub support for structure type variable

Post by ReidLi »

Hi,
It seems HP SDK only support pubsub functions for builtIn type variables. When the pubsub function for structure type variables will be supported, especially for periodicfixed message header layout?
During my test, when message header with dynamic layout is used, it reports error 'validate_target_variable: Data type not supported for last usable value'; when message header with periodicfixed layout is used, it report 'writer_datasetmsg_init - cann't calculate payload length for periodic fixed layout for dataset 'MyDataSet'.
Thanks.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: pubsub support for structure type variable

Post by Support Team »

Hello ReidLi,

PubSub does support structures with HeaderLayout Dynamic. However the value override handling LastUsableValue on the reader side is not supported for structure types. You can change that in the PubSub Config Plugin in the Reader DataSet view.

Structure types with header layout PeriodicFixed are indeed not Supported with the PubSub-Stack at the moment.
Best regards
Unified Automation Support Team

Post Reply