New project w/o object or types, generated code does not run

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
mLang_de
Sr. Member
Sr. Member
Posts: 14
Joined: 31 Jul 2013, 12:51

New project w/o object or types, generated code does not run

Post by mLang_de »

Hello support team,

I create the first time a UaModeler project without generating anything.
This is meaning, I generate the code without create any typedef or any objects in the adress space.
Only the new, empty UaModeler project.

I copy the generated files into my project folder. Then I compile it without an error und start the programm.
During the provider initialisation an error occured and the server shutdown.

At least I found the problem. In the file uaprovder_NAME.c are some defines.

Code: Select all

/* The number of nodes managed by the server. */
#if HAVE_ENCODING_BINARY
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -2
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -4
#else
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -4
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -8
#endif
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFMETHODS1 0

Is it right, that I either must create enough Object or I edit the two define to 0?

Code: Select all

/* The number of nodes managed by the server. */
#if HAVE_ENCODING_BINARY
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 -2
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 -4
#else
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFNODES1 0
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFREFERENCES1 0
#endif
#define UAPROVIDER_HILSCHER_OPC_UA_NETPROXY_NUMBEROFMETHODS1 0
Or do I something wrong?
I use the newest version UaModeler v1.3.0 "242" (Linux).

Thanks in advance!

Regards!
mLang_de

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

Re: New project w/o object or types, generated code does not

Post by Support Team »

Hello mLang_de,

This case is not supported directly at the moment. Normally there are a number of nodes generated with the UaModeler. Empty projects are not allowed with this UaModeler version, but we plan to handle this case in future releases.

Best regards
Support Team

Post Reply