Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Enterprise SCADA

Execute processes

  • Last UpdatedApr 24, 2025
  • 1 minute read

It is possible to execute scripts and other executable processes from the ACE code (acecode).

This is accomplished using the OASySDNA.Common.ProcessUtilities class for which the following static methods are defined:

bool DoesProcessExist(int processId);

int GetNumberOfProcessesRunning(string processName);

void KillProcess(int processId);

Binaries for the following must be in %OASySDNA%\bin:

void ExecuteBinary(string name, string parameters);

void ExecuteBinary(string name, string parameters, int maxWaitSecs);

void ExecuteBinaryAsynchronously(string name, string parameters);

 

The following executes an arbitrary file from a command shell:

void ExecuteCommandString(string commandString, int maxWaitSecs, bool useShell);

Scripts for the following must be in %OASySDNA%\scripts:

void ExecuteScript(string scriptName, string parameters);

void ExecuteScript(string scriptName, string parameters, int maxWaitSecs);

void ExecuteScriptAsynchronously(string scriptName, string parameters);

Scripts for the following must be in %OASySDNA%\scripts\<serviceName>

void ExecuteServiceScript(string serviceName, string scriptName, string parameters);

void ExecuteServiceScript(string serviceName, string scriptName, string parameters, int maxWaitSecs);

void ExecuteServiceScriptAsynchronously(string serviceName, string scriptName, string parameters);

Related Links