Login  •  Register


ConditionType not found

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

ConditionType not found

Postby sebastien_a » 11 Jul 2012, 12:44

Hi Unified Automation team,

If I browse the lesson 5 adressSpace, I can't find the "ConditionType" under "BaseEventType".
But if I browse the lesson 6 adressSpace, I find the "ConditionType" (see attached picture)



Why can't I find this type in lesson 5? because "ConditionType" is an OPC Foundation type...
Could you maybe explain how to activate this type because I didn't found the right way to do this in lesson 6.

Best Regards
sebastien_a
Newbie
Newbie
 
Posts: 12
Joined: 13 Apr 2012, 10:23

Re:ConditionType not found

Postby sebastien_a » 11 Jul 2012, 12:49

[img width=482]http://www.unified-automation.com/images/fbfiles/images/lesson5_61.PNG[/img]

(sorry, I can't upload the picture but the idea is there)
sebastien_a
Newbie
Newbie
 
Posts: 12
Joined: 13 Apr 2012, 10:23

Re:ConditionType not found

Postby sebastien_a » 11 Jul 2012, 14:35

Ok, I found the solution.
You create ConditionType when you initialise the OpcUa::OffNormalAlarmType

I assumed it would be not necessary to instanciate this class because ConditionType is in NamespaceIndex 0 (relative to OPC foundation I assume)
sebastien_a
Newbie
Newbie
 
Posts: 12
Joined: 13 Apr 2012, 10:23

Re:ConditionType not found

Postby Support Team » 16 Jul 2012, 12:45

Hi Sebastien,

The condition types are only added to the address space if they are used since not every server supports Alarms & Conditions.

The types are created automatically if a condition is used. Super types are created automatically.

If you know that your server will use certain condition types but they are not always present, you can call the static method used to register the event type in the start-up code of your server. The method is Base::createTypes() like OffNormalAlarmTypeBase::createTypes()

Best Regards,
Unified Automation Support Team
Best regards
Unified Automation Support Team
User avatar
Support Team
Hero Member
Hero Member
 
Posts: 2397
Joined: 18 Mar 2011, 15:09

Re: ConditionType not found

Postby judimejola » 13 Jun 2019, 12:55

On the space of the address we are looking for the conditions which are not be simple as well then different from the coming series. With the finding options of the looking about 123helpme free is good with the using of the codes as this word.
judimejola
Newbie
Newbie
 
Posts: 1
Joined: 13 Jun 2019, 12:54


Return to C++ based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 1 guest