Creating a Managed Code Application

The IntervalZero.MaxRT.wRTOS.dll provides the ability for a Windows application to link in features that will allow it to communicate with wRTOS real-time applications. Create a managed code application that includes real-time communication attributes as follows:

Steps:

  1. Create a new Visual Studio project as you normally would (i.e. by selecting to begin a C# Console Application).
  2. Add the wRTOS Managed Code assembly:
  3. Right-click References in Solution Explorer and then select Add Reference...
  4. In the Reference Manager dialog, click Browse.
  5. Click the Browse... button, and navigate to C:\Program Files\IntervalZero\MaxRT\wRTOS SDK\1.0\bin\IntervalZero.MaxRT.wRTOS.dll

Note: If you installed the wRTOS SDK to a different folder, you would need to change the above path accordingly.

  1. Click OK. IntervalZero.MaxRT.wRTOS should now be listed under References in Solution Explorer.
  2. Add the namespaces that you will use, such as:
    1. using IntervalZero.MaxRT.wRTOS;

      using IntervalZero.MaxRT.NL2.Config;

      using IntervalZero.MaxRT.Ecat.Config;

  3. Click OK to save the new reference.

Related topics: