RTX64 Program Samples
The RTX64 SDK includes several programming samples to help developers create real-time programs that will run in the RTX64 environment. RTX64 provides a set of code samples in the %public%\Public Documents\IntervalZero\RTX64 SDK\4.5
\Samples
directory.
IMPORTANT! These samples are provided to show concepts only. They do not include full error checking that would normally exist in customer applications.
- RTX64 Vision Samples - These samples are for learning how to use RTX64 Vision.
- Dynamic MSpace Configuration - You can use the provided sample code, building as RTSS processes and Windows processes, respectively, to avoid memory request errors when memory allocation spaces (MSpaces) are configured to not expand automatically when exhausted.
- FastSemaphores - This sample is designed to demonstrate the usage and abilities of the FastSemaphore functions.
- IntelProE1000 - This sample provides an example of using Message Signaled Interrupts (MSI/MSIX) or line-based interrupts on the Intel PRO/e1000 PT Single, Dual or Quad port server adapter or the Intel Gigabit CT Desktop Adapter.
- IPCLatency - This sample provides source files for measuring the latency for switching between two threads
- ManagedCodeFrameworkClientCPlusPlus - This sample provides an example of how to use the RTX64 Framework from C++/CLI to change the product's configuration.
- ManagedCodeFrameworkClientCSharp - This sample provides an example of how to use the RTX64 Framework from C# to change the product's configuration
- Mailbox - This sample creates an instance of a mailbox which is thread safe.
- Monitor - This sample is a command-line program that displays system information including speed and type of processor running RTX64, HAL type, CPU utilization and other information that can be used to help measure RTSS application load.
- Multicast - This sample tests IGMP Multicast capability for the RT TCP/IP Stack.
- Native Framework Client - This sample demonstrates how to use the RTX64 Native Framework library in a Visual Studio C/C++ project.
- PciScanBus - This sample searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen.
- PingPong - This sample spawns off two threads. The threads will signal each other back and forth for a set amount of time. After the time has expired the main thread will signal the threads to complete and end the program.
- RawIpSocket - This sample runs a raw IP echo client and/or raw IP echo server, depending on the specified command line options.
- RDTPerformance - This sample provides an example of how to use RTX64-supported Intel® Resource Director Technology (RDT) to optimize the performance of RTSS threads with high performance requirements.
- Rtdll - This sample demonstrates how to use an RTDLL in an RTSS Process. It uses library functionality to provide an application similar to the DLL sample.
- RtEthernetFilter - Ethernet filter driver to filter all the receive and transmit frames. This sample only filters frames generated from certain Ethernet addresses. Also, it will generate and transmit new frames if any frames for specific Ethernet addresses is detected.
- RTKIPC - This sample demonstrates usage of the Real-Time Kernel (RTK) API and how to synchronize a Windows driver with a RTX64 process.
- RtTcpipClient - This sample program tests the RTX64 TCP/IP protocol stack by sending packets to a server and waiting for a response.
- RtTcpipServer - TCP/IP Server program monitors for connections on a TCP/IP port. Can be used in conjunction with the RtTcpipClient sample.
- Shutdown - This sample demonstrates the use of a system shutdown handler in an application.
- SimpleDataExchange - The sample detects whether an event is open or not.
- SimpleProducerConsumer - This sample builds two applications. The consumer application opens a memory address that is shared between the RTX64 subsystem and windows. The producer application creates and writes to a globally named shared memory address.
- SmpSample - This program spawns off 3 threads in a suspended state.
- Srtm - The System Response Time Measurement (SRTM) utility measures timer delivery latencies using the RTX64 synchronized clock and timers. It then prints the results.
- TCPIP - This sample includes a simplified TCP server, a simplified blocking TCP client, and a simplified non-blocking TCP client.
- UDP - This sample includes a simplified UDP server and a simplified UDP client.
-
WindowsRTX64UsingSTL - This sample demonstrates data exchange between a real-time process and a Windows user-space process using C++ STL classes to manage the data that is exchanged via a shared memory region.