# Operating system configuration The main task is to setup the operating system to support the appropriate network adapter for EtherCAT® usage and for some systems real-time configuration may be needed. The operating system-specific settings and configurations are described in [Platform and Operating Systems (OS)](os.html.md#platform-and-operating-systems-os). \\newpage ## Running EcSimulatorHilDemoGuiDotNet EC-Simulator HiL for Windows contains a .NET example application, the EcSimulatorHilDemoGuiDotNet. Selecting the appropriate network adapter and providing an EtherCAT® Network Configuration file (ENI / EXI) is mandatory before clicking “Start” to run the EC-Simulator: ![EcSimulatorHilDemoGuiDotNet start parameters](../Media/EcSimulatorHilDemoGuiDotNet-start-parameters.png)\\newpage ## Running EcSimulatorHilDemo The EcSimulatorHilDemo is an EC-Simulator example application that handles the following tasks: - Showing basic EtherCAT® communication - Stack initialization - Process Data operations (e.g., flashing INPUTs) - Periodic diagnosis task - Periodic Job Task - Logging to ecsimulator0.log, error0.log The EcSimulatorHilDemo is available “out of the box” for different operating systems. The operating system must be prepared for running EtherCAT® applications. #### SEE ALSO [Operating system configuration](#operating-system-configuration) ### Setting up and running EcSimulatorHilDemo #### Linux (EcSimulatorHilDemo) 1. Operating system configuration: See the section [Operating system configuration](#operating-system-configuration) for how to prepare the operating system. 2. Starting EcSimulatorHilDemo ```console $ cd /opt/EC-Simulator/Bin/Linux/x64 $ ./EcSimulatorHilDemo -intelgbe 2 1 -f exi.xml -perf -sp ``` #### Microsoft Windows (EcSimulatorHilDemo) 1. Windows configuration: See the section Operating system configuration for how to prepare the operating system. 2. Determine the network interface: Using the command line option the network interface card used by the example application can be determined. For example the option -ndis 192.168.157.2 0 will be using the network adapter card with the IP address 192.168.157.2 . 3. Simulating EtherCAT® modules: The simulator has to be connected with the target system using an Ethernet switch or a patch cable. Local IT infrastructure should not be mixed with EtherCAT® modules at the same switch as the MainDevice will send many broadcast packets! EtherCAT® requires a 100Mbit/s connection. Gigabit-Ethernet connections between simulator and MainDevice can be typically used, too. 4. Copy all of the example application files into one directory: The application EcSimulatorHilDemo.exe together with the stack DLLs and the EXI file have to be copied into one directory. 5. Run the example application: EcSimulatorHilDemo.exe has to be executed. The file name of the EXI file has to be given as a command line parameter as well as the appropriate Real-time Ethernet Driver parameters. ```console $ EcSimulatorHilDemo.exe -ndis 192.168.157.2 0 -f exi.xml -t 0 -v 3 -sp ``` ### Command line parameters ### EcSimulatorHilDemo [-f ENI-FileName] [-t cycle time] [-b time] [-a affinity] [-v level] [-perf [level]] [-log prefix [msg cnt]] [-lic key] [-oem key] [-fingerprint method] [-flash address] [-sp [port]] [-rec [prefix [frame cnt]]] The parameters are as follows: ### -f Path to ENI file ### -t