Error when compiling generated Code with Event C++

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
UAIFT
Jr. Member
Jr. Member
Posts: 2
Joined: 10 Jan 2012, 09:42

Error when compiling generated Code with Event C++

Post by UAIFT »

When I want to compile a generated Code with a BaseEventType then I get following message:

no overloaded function takes 4 parameters.

Here the Code witch generates the error:

//BaseEvent
pObjectType = new ift::Event(UaNodeId(5020, getTypeNamespace()), "BaseEvent", getTypeNamespace(), this);
parentNodeId = UaNodeId(5002, getTypeNamespace());
referenceTypeId = UaNodeId(47, NodeManagerRoot::getTypeNamespace());

addNodeAndReference(parentNodeId, pObjectType, referenceTypeId);

Can anybody help me?

And is it possible to create a tutorial how to impliment event and alarm handling with the UaModeler and C++

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

Re:Error when compiling generated Code with Event C++

Post by Support Team »

EventTypes are used to describe the event fields. You must not create instances of event types. For this reason the UaModeler does not generate code for creating instances of event types.
In contrast to event types you can create instances of condition types. But here not the event itself is instantiated, but the state of the condition.
Plese see Lesson05 and Lesson06 for additional information.
Best regards
Unified Automation Support Team

Post Reply