2. Programmers Guide

2.1. Sample Application

There is currently 1 script available:

EcMasterDemoDotNet.bat

Starts the console demo application

2.2. Sample Code

The .NET demo application contains of 1 class:

EcDemoApp.cs:

Console demo application

2.3. Wrapper

2.3.1. Modules

The .NET Wrapper contains of 5 modules:

CEcWrapperDotNet.cs
class CEcWrapperDotNet

EC-Wrapper base class

class CEcMasterDotNet

EC-Master

class CEcMasterRasServerDotNet

RAS Server for EC-Master

class CEcMasterMbxGatewayClientDotNet

Mailbox Gateway Client for EC-Master

class CEcMasterMbxGatewayServerDotNet

Mailbox Gateway Server for EC-Master

class CEcSimulatorDotNet

EC-Simulator

class CEcSimulatorRasServerDotNet

RAS Server for EC-Simulator

class CEcRasClientDotNet

RAS Client for EC-Master / EC-Simulator

CEcMotionDotNet.cs
class CEcMotionDotNet

EC-Motion interface

CEcWrapperDotNetTypes.cs

.NET types

CEcWrapper.cs

.NET C based interface (internal)

CEcWrapperTypes.cs

.NET C based types (internal)

2.3.2. Return code vs. exception handling

The most of all API functions returns a return code for error handling. This behaviour can be changed to throw an exception in error case by simply setting:

CEcWrapperDotNet.EnableExceptionHandling = true; // default is false