7.4. Microsoft Windows
7.4.1. EcMonitorDemo
- Install EC-Monitor
Run
setup.exefrom EC-Monitor package, which will guide you through the installation process.
- Determine the network interface
For example the option -ndis 192.168.1.1 1 will be using the network adapter card with the IP address 192.168.1.1.
Insert a TAP device after the Master Controller to capture the EtherCAT traffic and start the EtherCAT master
- Run the example application
Execute EcMonitorDemo.exe from
<InstallPath>/Bin/Windows/<Arch>/. At least an Ethernet Driver option has to be given.EcMonitorDemo -ndis 192.168.1.1 1 -f D:/eni.xml -sp
See also
Running EcMonitorDemo for a detailed description of the demo application.
7.4.2. EcMonitorDemoGuiDotNet (.NET) - Microsoft Windows
- Prerequisites
To run the
EcMonitorDemoGuiDotNet.exe, the librariesEcMonitor.dll,EcWrapperDotNet.dll,EcWrapper.dllandemllNdis.dllfromBin/Windows/x64are needed inBin/Windows/x64/Release,Bin/Windows/x64/Debug
- Visual Studio C#-project
The C#-project for VS2015 or higher is located at
Workspace/WindowsVS2015/EcMonitorDemoGuiDotNet/EcMonitorDemoGuiDotNet.csproj
If the reference EcWrapperDotNet is missing, it must be re-added from
Bin/Windows/x64/EcWrapperDotNet.dllEcMonitorDemoGuiDotNet is now prepared for Run/Debug
7.4.3. OS Compiler settings
Besides the general settings from Compiling the EcMonitorDemo the following settings are necessary to build the example application for Windows.
- Extra include paths
<InstallPath>\SDK\INC\Windows <InstallPath>\Examples\Common\Windows
- Extra source paths
<InstallPath>\Examples\Common\Windows <InstallPath>\Sources\OsLayer\Windows
- Extra library paths to the main EtherCAT components
<InstallPath>\SDK\LIB\Windows
7.4.4. RtaccDevice for Real-time Ethernet Driver
As alternative to the NDIS based or Pcap based Ethernet Driver, an optional Real-time Ethernet Driver on Windows can be installed. The Real-time Ethernet Driver replaces the original Windows driver and also requires an extra license.
To use the Real-time Ethernet Driver under Windows, it is necessary to install the RtaccDevice driver included in the Real-time Ethernet Driver delivery:
- Start the “Device Manager”
- Assign RtaccDevice to the network adapter
Click on “Browse my computer for driver”
Click on “Let me pick…”
Click on “Have Disk…”
Enter the directory of RtaccDevice Driver
The default folder if not changed is
<InstallPath>\Bin\Windows\x64
Enter the correct directory at the input box and press OK to proceed.
- Choose the RtaccDevice Driver and click “Next” and confirm the installation
Optionally modify search location Real-time Ethernet Driver
Search locations for Real-time Ethernet Driver can be adjusted using the PATH environment variable.