fwGeneral  8.4.0
fwManager.ctl File Reference

Functions

synchronized dyn_string fwManager_getScriptsRunByCtrlMan (string systemName, unsigned ctrlManNum, dyn_string &exceptionInfo)
 
private void _fwManager_checkDriverRunningCB (string dp, dyn_int values)
 
bool fwManager_checkDriverRunning (int drvNumber, dyn_string &exceptionInfo, string systemName="")
 
string fwManager_getManagerHostname (int managerId, dyn_string &exceptionInfo)
 

Detailed Description

This library contains functions related to WinCC OA Managers

Creation Date
18/02/2015
Author
Piotr Golonka (CERN EN/ICE)

Function Documentation

synchronized dyn_string fwManager_getScriptsRunByCtrlMan ( string  systemName,
unsigned  ctrlManNum,
dyn_string &  exceptionInfo 
)

Returns the list of Ctrl scripts executed by a given Ctrl Manager.

systemName (input) the name of the system to be queried
ctrlManNum (input) the manager number to be queried
exceptionInfo (output) the standard exception-handling variable
Returns
the list of names of scripts executed by given Ctrl manager,

If not existing, the necessaery _CtrlDebug datapoint is created.

private void _fwManager_checkDriverRunningCB ( string  dp,
dyn_int  values 
)

internal callback tracing the driver check

Reviewed:
2018-06-21 BackgroundProcessing
bool fwManager_checkDriverRunning ( int  drvNumber,
dyn_string &  exceptionInfo,
string  systemName = "" 
)

Check whether specified driver is running

drvNumber (input) the driver number to be checked
exceptionInfo (output) the standard exception-handling variable
systemName (input,optional) the name of the system to be queried; by default local system ("")
Returns
a boolean value with the result of check.

The calls for the local system are handled through a cache, whereas those for remote ones are handled with dpGet (consider the latency of a roundtrip). The cache is established through a dpConnect to the _Connections.Driver.ManNums datapoint.

string fwManager_getManagerHostname ( int  managerId,
dyn_string &  exceptionInfo 
)
This function returns the host name where the given manager is running.  The manager id passed is

the internal PVSS manager ID as used by functions like convManIdToInt(). The function looks in the internal PVSS _Connections DPs to find this information.

Constraints
Currently only supports CTRL and UI managers (because users can lock configs from these managers)
Usage
Internal
PVSS managers
VISION, CTRL
Parameters
managerIdThe manager ID for which you want to find the host name
managerHostnameThe hostname is returned here
exceptionInfoDetails of any exceptions are returned here