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: 57
Joined: Thu Feb 18, 2016 3:18 pm

How to know if para panels are opened?

Post by sblancha » Mon Aug 05, 2019 1:55 pm

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: 1891
Joined: Tue Aug 24, 2010 5:28 pm

Re: How to know if para panels are opened?

Post by leoknipp » Tue Aug 06, 2019 6:47 am

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

Best Regards
Leopold Knipp
Senior Support Specialist

sblancha
Posts: 57
Joined: Thu Feb 18, 2016 3:18 pm

Re: How to know if para panels are opened?

Post by sblancha » Tue Aug 06, 2019 8:21 am

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: 57
Joined: Thu Feb 18, 2016 3:18 pm

Re: How to know if para panels are opened?

Post by sblancha » Tue Aug 06, 2019 8:24 am

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: 57
Joined: Thu Feb 18, 2016 3:18 pm

Re: How to know if para panels are opened?

Post by sblancha » Tue Aug 06, 2019 8:32 am

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: 45
Joined: Wed Jul 09, 2014 10:44 am

Re: How to know if para panels are opened?

Post by Piterskiy » Tue Aug 06, 2019 8:39 am

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 12:45 pm, edited 1 time in total.

sblancha
Posts: 57
Joined: Thu Feb 18, 2016 3:18 pm

Re: How to know if para panels are opened?

Post by sblancha » Tue Aug 06, 2019 9:11 am

dpQuery to _Ui* works fine thanks for the tips.

User avatar
leoknipp
Posts: 1891
Joined: Tue Aug 24, 2010 5:28 pm

Re: How to know if para panels are opened?

Post by leoknipp » Tue Aug 06, 2019 9:49 am

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: 57
Joined: Thu Feb 18, 2016 3:18 pm

Re: How to know if para panels are opened?

Post by sblancha » Thu Aug 08, 2019 8:44 am

Ok thanks for the details

Post Reply
9 posts • Page 1 of 1