A DP related to UI

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
8 posts • Page 1 of 1
Natty
Posts:34
Joined: Mon May 23, 2016 2:08 pm

A DP related to UI

Post by Natty »

Hello everyone,

I am trying to find an internal datapoint which indicates whether my user interface is on. To put things back in their context, I would like to set up a redundant system and to be able to watch whether WinCC OA is launched on my 2 server.

NB : I'm still beginning to get used to WinCC OA, so don't be too harsh on me if I asked something incredibly trivial :)

Thank you.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: A DP related to UI

Post by RudiKreiner »

The internal dyn_int datapoint named _Connections.Ui.ManNums contains the manager numbers of all running UI managers. To see that datapoint in PARA you need to set the "Internal Datapoints" checkbox though, then look in the type named _Connections.
There are related datapoint for other manager types like drivers, controls, etc. there as well.
There is also an interesting datapoint type named _Ui containing a datapoint for each UI manager, with some interesting information in it, like which user is logged on, and which display the UI is running on.

Natty
Posts:34
Joined: Mon May 23, 2016 2:08 pm

Re: A DP related to UI

Post by Natty »

Fair enough. This is exactly what I was looking for. Thanks for your answer ! :)

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: A DP related to UI

Post by fmulder »

Unfortunately, it is not as simple as that !
Yes, basically you should look at the _Ui and the _Connections datapoint but there are some warnings.

In a redu system you'll have 2 datapoints called _Connections and _Connections_2. Unfortunately, when you turn of one of the redu servers, then its datapoint wont be cleared. That is : the _Connections_2 datapoint will stil have its old data when you power of the entire server. The formula is more complex.
* When your script runs on server 1
* when the _Connection to server 2 is gone
* Then you should not look at _Connections_2 (and vice versa)

Also, when you start a Gedi. then the _Connections datapoint will be filled, but the _Ui datapoint (element username) is not cleared. You may think that someone is still logged in

Good luck

Frenk

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: A DP related to UI

Post by mkoller »

On a normal UI exit, the internal DPEs UserName and DisplayName are reset to an empty string (yes, in older versions this was not the case).

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

Re: A DP related to UI

Post by leoknipp »

Hello,

with the CTRL-function reduActive() you can get the information which of the servers is active at the moment.
If the redundant servers have a connection is written to the dp-elements
_ReduManager.PeerAlive.Link0
_ReduManager_2.PeerAlive.Link0

If the value is 1 the servers are connected.
To get the correct information you have to check first to which of the servers the UI is connected. This information you can get with the CTRL-function isConnOpen().

Best Regards
Leopold Knipp
Senior Support Specialist

Natty
Posts:34
Joined: Mon May 23, 2016 2:08 pm

Re: A DP related to UI

Post by Natty »

It works perfectly with these datapoints, thanks a lot.

I'm now looking for datapoints indicating whether a manager has fallen down. I've been watching the "_ManagerConnections" and "_Managers" leaf but I got a bit confused with all the different variables.
Do you have an explanation about this matter?

Thanks in advance.

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

Re: A DP related to UI

Post by leoknipp »

Hello,

if you want to know which managers are currently connected to the event-manager you can read the elements for the datapoint _Connections(_2).
An explanation for the structure of the datapoint type _Connections can be found in the WinCC OA help --> Reference tables --> Internal data point types.

Best Regards
Leopold Knipp
Senior Support Specialist

8 posts • Page 1 of 1