How to know if para panels are opened?

Discussion about recent product features & solutions!
Search

Post Reply
9 posts • Page 1 of 1
sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

How to know if para panels are opened?

Post by sblancha »

Hello,

I have checked system overview of the winCC OA application but seems it reports only user interfaced opened. How to know how many from which client para panel are currently opened?

Thanks,

Sebastien

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to know if para panels are opened?

Post by leoknipp »

You can try if the function getParaNames() returns the correct result.

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: How to know if para panels are opened?

Post by sblancha »

Thanks for the fast answer.
The function seems to always return nothing whatever paras are opened or not and in help I found:
"Lists all the open PARA modules. The function is obsolete as of WinCC OA version 3.6. The function is, however, available for compatibility reasons."

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: How to know if para panels are opened?

Post by sblancha »

Maybe something else may help me. I'd like to check if some dpe are locked. I can parse all dpe of my project and check the _lock config but I wonder if there is an easier way?

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: How to know if para panels are opened?

Post by sblancha »

Another question: if dpe is _lock, dpSet() do nothing and return -1 Correct? is there an error message in the PVSS log? or I have to getLastError() and print it?

Piterskiy
Posts: 46
Joined: Wed Jul 09, 2014 12:44 pm

Re: How to know if para panels are opened?

Post by Piterskiy »

You could also do a dpQueryConnectSingle on datapoints of "_Ui" DPT
then check DP.RootPanelOrigOn.FileName dpe if it is equal para/original.pnl then process it

Upd. If use this approach, that should be a Ctrl function that start working when project launches (as CTRL Manager). See Leopold remark.
Last edited by Piterskiy on Tue Aug 06, 2019 2:45 pm, edited 1 time in total.

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: How to know if para panels are opened?

Post by sblancha »

dpQuery to _Ui* works fine thanks for the tips.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to know if para panels are opened?

Post by leoknipp »

Reading the _UI datapoint only returns the information for the panel which was opened last.
If someone has opened a PARA before you will not get the information.

For the function dpSet() you cannot use getLastError() to check if an error occured because dpSet() is not a waiting function.
If you use dpSetWait() a check with getLastError() is possible.

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: How to know if para panels are opened?

Post by sblancha »

Ok thanks for the details

Post Reply
9 posts • Page 1 of 1