Skip to content

Debugging a driver extension

COPA-DATA Product Management edited this page Feb 23, 2023 · 10 revisions

To debug a driver extension ensure that Visual Studio and zenon Runtime are executed in the same user context (same user and same elevation level).

In project properties, select tab "Debug" and select as launch setting "Executable". Select the GenericNet.exe file within the zenon installation directory. Example for zenon version 10. Adjust for the version accordingly:

C:\Program Files (x86)\COPA-DATA\zenon C:\Program Files (x86)\COPA-DATA\zenon Software Platform 10\GenericNet.exe

Ensure, that the driver files are copied in a sub directory of the DriverExtensions-Folder and in the project a GenericNet driver is configured to use the driver extension.

Start in Visual Studio the project. The GenericNet.exe driver is started. Start zenon Runtime, during start the InitializeAsync-Method is called.

If the InitializeAsync-Method is not called:

  1. The project zenon Runtime loads does not have a GenericNet-driver configured that uses the driver extension.
  2. Visual Studio and zenon Runtime using not the same elevation level (e. g. Visual Studio started as Administrator, zenon Runtime not)
  3. The driver extension or dependencies are not copied to the configured sub-directory of DriverExtensions folder.

Clone this wiki locally