DP functions

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
xavi.aran
Posts:63
Joined: Thu Apr 21, 2011 1:21 pm

DP functions

Post by xavi.aran »

I'm trying to use a personal function in the _dp_fct Config.
In the help it says:
You can also use functions with return value in this field.
It is possible? Where can i write my function? I try to put my function on a library project loaded in the config but doesn't work.
I send a images from para and LogViewer.
Thanks!

mweber
Posts:42
Joined: Mon Aug 02, 2010 11:23 am

Re: DP functions

Post by mweber »

Hello,

dont forget that dp_fcts are worked inside the event manager thus, when you want to use functions from whatever library inside the _dp_fct config, you have to load that library in the event section of your config file (or in your config.level of your sub-project).

example:
[event]
LoadCtrlLibs = "myLib.ctl"



best regards

Markus

baumanndo
Posts:10
Joined: Tue Dec 14, 2010 8:03 am

Re: DP functions

Post by baumanndo »

how to load a ctrl library in Event at runtime?

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: DP functions

Post by adaneau »

Hi,
I dont think it is possible, library are loaded at startup... Only gedi is having such an option.

BR
Alexandre Daneau

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: DP functions

Post by leoknipp »

As Alexandre has written dynamic loading of libraries is not possible in the Event Manager.
The libraries which are needed must be loaded with the config entries. If you have modified the code in the library the Event Manager must be restarted to use the new code.


Best Regards
Leopold Knipp
Senior Support Specialist

5 posts • Page 1 of 1