Hi,
Is there a way to get the overall number of dpe for a running project?
Cheers,
Sebastien
Get number of dpe
- adaneau
- Posts:310
- Joined: Tue Feb 21, 2012 9:49 am
Re: Get number of dpe
Hi,
Yes this is quite easy to achieve:
- Use any dpGetAll (description or alias) function and count the lenght of result . As any DPE is having a common, this makes the trick:
dyn_string ret, desc;
dpGetAllDescriptions(ret, desc);
DebugN(dynlen(ret));
- However, you may want only a list of DPE containing a value, then just go to sysmgm / Diagnostics / Event manager connections . Click on event table and go to 3rd tab, every project information relative to DPconfig from event are here (_original amount is amount of DPE having a value).
BR
Alexandre
Yes this is quite easy to achieve:
- Use any dpGetAll (description or alias) function and count the lenght of result . As any DPE is having a common, this makes the trick:
dyn_string ret, desc;
dpGetAllDescriptions(ret, desc);
DebugN(dynlen(ret));
- However, you may want only a list of DPE containing a value, then just go to sysmgm / Diagnostics / Event manager connections . Click on event table and go to 3rd tab, every project information relative to DPconfig from event are here (_original amount is amount of DPE having a value).
BR
Alexandre
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Get number of dpe
You can also get the number of configs with the debug flag "-report configmanager".
The debug gflag can be used for every manager which holds configs during runtime (Data-Manager, Event-Manager, Drivers).
When using the panel for the Event Manager Connections you probably have to set an update interval in the panel to get the actual values.
Best Regards
Leopold Knipp
Senior Support Specialist
The debug gflag can be used for every manager which holds configs during runtime (Data-Manager, Event-Manager, Drivers).
When using the panel for the Event Manager Connections you probably have to set an update interval in the panel to get the actual values.
Best Regards
Leopold Knipp
Senior Support Specialist
- Ulrich Ahrens
- Posts:6
- Joined: Thu Jul 13, 2017 8:41 pm
Re: Get number of dpe
Is it possible to use dpconnect (or query) to respond to the addition or removal of a data point to a particular type of data point? For example, to determine how many data points of a particular data point type exist?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Get number of dpe
When using WinCC OA 3.16 you can use the new function sysConnect() to get the information when a datapoint is created or deleted.
To get the number of datapoints for a specific type you can use dpNames() with filters.
Best Regards
Leopold Knipp
Senior Support Specialist
To get the number of datapoints for a specific type you can use dpNames() with filters.
Best Regards
Leopold Knipp
Senior Support Specialist