how can I use the list of the running workplaces aspect in a program (Calculation or PG2)? I would like to set a varible if a specific workplace is running on a specific client.
Probably you already know this that you can view the list of running workplaces in the system on aspect "running workplace overview" in workplace structure.
However there is no OPC property that can be used directly. Probably someone from ABB R&D would be able to provide better answer. Talk to ABB Support.
I once used a PNSM "Computer Process Status" IT Asset to check for if a workplace process exist or not on a particular client node.
The PID becomes 0 if there is no workplace running.
I have not found a solution to check what workplace is running. In fact, even the "Workplace Launcher application" (the one you get when selecting Workplace from the Start menu) is named afwworkplaceapplication.exe - so the above method will not allow you to differentiate between Plant Explorer, Operator Workplace X or Workplace Launcher (however, the launcher drains very little memory so a check for a certain number of megabytes of virtual memory usage could in theory be used to spot it).