Create MonitoredItem of Structered Variable

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
ck84vi
Jr. Member
Jr. Member
Posts: 3
Joined: 16 Apr 2015, 04:25

Create MonitoredItem of Structered Variable

Post by ck84vi »

Hy,

I'm trying to create a MonitoredItem of a structered variable.

The variable itself looks like:

struct recipe
{
int value1;
string value2;
real value3;
..
};

But currently I get the error {BadNotSupported} for the structured variable when I try to create the MonitoredItem for this variable.

Is there a way to create a MonitoredItem as well as read structured variables similar to the approach of reading non structured "normal" variables?

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

Re: Create MonitoredItem of Structered Variable

Post by Support Team »

Hello,

There are no differences between subscribing to "normal" variables and subscribing to variable with a structured DataType. Please see the documentation for an example: http://documentation.unified-automation ... en_net_st8

Best regards
Support Team

ck84vi
Jr. Member
Jr. Member
Posts: 3
Joined: 16 Apr 2015, 04:25

Re: Create MonitoredItem of Structered Variable

Post by ck84vi »

Thank you very much,

i didnt know about the UaModeler since I'm on the test version of the SDK in this was the last thing I wanted to test out. This will help me a lot.

Post Reply