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:
- Create a new Visual Studio project as you normally would (i.e. by selecting to begin a C# Console Application).
- Add the wRTOS Managed Code assembly:
- Right-click References in Solution Explorer and then select Add Reference...
- In the Reference Manager dialog, click Browse.
- 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.
- Click OK. IntervalZero.MaxRT.wRTOS should now be listed under References in Solution Explorer.
- Add the namespaces that you will use, such as:
- Click OK to save the new reference.
using IntervalZero.MaxRT.wRTOS;
using IntervalZero.MaxRT.NL2.Config;
using IntervalZero.MaxRT.Ecat.Config;