ManagedCodeFrameworkClientCSharp
Description
Provides an example of how to use the RTX64 Framework from C# to change the product's configuration.
Programs
ManagedCodeFrameworkClientCSharp project:
- This project defines the class ManagedCodeFrameworkClientCSharp.Program in the file
Program.cs
. That class has a single method, Main, which does all the work. - The Main method begins by obtaining a reference to the singleton instance of class IntervalZero.RTX64.Config.Subsystem, which is used to configure the RTX64 real-time Subsystem. Next, it outputs the configured HAL Timer Period, the minimum size for the external MSpace, and whether or not the Subsystem allocates memory from Windows or from local memory. It does this by referencing .NET properties on the Subsystem singleton. Next, it toggles the Subsystem to allocate memory from the other source and reports the results.
- Next, the Main method obtains a reference to the singleton instance of class IntervalZero.RTX64.Config.Product, which is used to obtain information about the RTX64 product installation. It uses properties on the Product singleton to display the product version and build number. Note that these properties are read-only.
Notes
This sample project will not build with the Intel Compiler.
If Visual Studio 2017 is not installed in the default location, the following error will appear when this sample is built in the Debug configuration: warning MSB 3884: Could not find rule set file "MinimumRecommendedRules.ruleset". This error can be ignored, as the sample will still run as expected.
APIs Referenced
RTX64 Framework Class |
Properties Used |
HALTimerPeriod |
|
IntervalZero.RTX64.Config.Product |
Version BuildNumber |