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

Plant SCADA

Run a CtAPI Application

  • Last UpdatedSep 17, 2026
  • 1 minute read

Note: A computer that hosts a CtAPI application requires an installation of Plant SCADA. If this is not the case, you can install a runtime-only client (see Install a Runtime-only Client).

To run a CtAPI application, the program needs to be able to locate CtAPI.dll and its dependencies. There are several ways to achieve this:

  • You can copy your program and its dependencies to the Plant SCADA Bin directory.

  • You can copy the set of required binaries into the same directory as your application. These binaries are packaged in the files CtAPI.Win32.Redist.zip and CtAPI.x64.Redist.zip, which can be found in the following directory on the Plant SCADA installation media:

    \AVEVA Plant SCADA2023\Extras\CtAPI

  • If the above options are not possible (for example, you are using CtAPI from VBA in a Microsoft Office application such as Excel), then you can add the Plant SCADA Bin directory to the %PATH% environment variable. This allows your application to locate CtAPI.dll. However, certain dependencies will not be located this way because Windows will not use the path to locate .NET managed assemblies.

    To resolve this, call the CtAPI function ctSetManagedBinDirectory with the path to the Plant SCADA Bin directory before your call to ctOpen.

Note: The connection between a remote CtAPI client and Plant SCADA is encrypted by default. For more information, see Configure the Connection to a Remote CtAPI Application.

Related Links