Download PEAXACT Application Server - User Manual
Transcript
3 - APPLICATION PROGRAMMING INTERFACE (API) 21 isOK (scalar logical) is false in case of errors. Note: Calling this method multiple times has no effect when initialization was successful before. isInitialized() function [isOK] = isInitialized() Query status of initialization isOK (scalar logical) is true (false) if the Application Server is (not) initialized. getLastErrorMessage() function [message] = getLastErrorMessage() Get message of last caught exception. message (string) is the text of the last caught exception. It typically changes when the isOK return value of other methods is false. Note: Calling this method also resets the last error message to an empty string. getLogger() function [logLevel, logFilename] = getLogger() Get logging details. logLevel (string) is the current state of the logging level. logFilename (string) is the current log filename. If no logger is set, logLevel is "OFF" and logFilename is an empty string. setLicense() function [isOK] = setLicense() Activate license. If no license has been set so far (by either initialize() or any of the setLicense() methods) the Windows registry is searched for a permanently activated license. isOK (scalar logical) is true if a valid license could be found and false if not. function [isOK] = setLicense(filename) Activate specific license. This method gives you full control over the license to be used. It should be called before initialize(). However, it can be called anytime to switch the license. filename (string) is the fully qualified filename of a PEAXACT license. isOK (scalar logical) is false if the specified license is invalid. function [isOK] = setLicense(filename, OEM_Key) Activate OEM license. OEM licenses are available for third-party software developers only who integrate PEAXACT with their software and re-sell it as part of their own products to endcustomers. Solutions for Process Analytics & Control Technology