system.util
Utility Functionsβ
The following functions give you access to view various Gateway and Client data, as well as interact with other various systems.
ποΈ audit
Inserts a record into an audit profile.
ποΈ execute
Executes the given commands via the operating system, in a separate process.
ποΈ getGatewayStatus
Returns a string that indicates the status of the Gateway.
ποΈ getGlobals
This method returns a dictionary that provides access to the legacy global namespace.
ποΈ getLogger
Returns a Logger object that can be used to log messages to the console.
ποΈ getModules
Returns a dataset of information about each installed module.
ποΈ getProjectName
Returns the name of the project that is currently being run.
ποΈ getProperty
Retrieves the value of a named system property.
ποΈ getSessionInfo
Returns a PyDataSet holding information about all of the open Designer sessions and Vision Clients.
ποΈ getVersion
Returns the Ignition version number that is currently being run.
ποΈ invokeAsynchronous
Invokes (calls) the given Python function on a different thread.
ποΈ jsonDecode
Takes a JSON string and converts it into a Python object such as a list or a dictionary.
ποΈ jsonEncode
Takes a Python object such as a list or dictionary and converts into a JSON string.
ποΈ modifyTranslation
This function allows you to add or modify a global translation.
ποΈ queryAuditLog
Queries an audit profile for audit history.
ποΈ sendMessage
This function sends a message to clients running under the Gateway, or to a project within the Gateway itself.
ποΈ sendRequest
This function sends a message to the Gateway, working in a similar manner to the sendMessage function, except sendRequest expects a response to the message.
ποΈ sendRequestAsync
This function sends a message to the Gateway and expects a response.
ποΈ setLoggingLevel
Sets the logging level on the given logger.
ποΈ threadDump
Creates a thread dump of the current running JVM.
ποΈ translate
This function allows you to retrieve the global translation of a term from the translation database using the current locale.