Simple Data Exchange Sample
Description
The sample detects whether an event is open or not. If the event is not open the program creates an event and adds a string to shared memory. It then waits. You then must run the program a second time. This process will find the event, read the string from the shared memory signal to the other program that it has completed, and then shut itself down. The other program having been signaled will also shut itself down.
Source Files
| File | Description |
|---|---|
| SimpleDataExchange.c |
The main source file. |
Building the Sample
- Open a project file in the corresponding Visual Studio version you are using for development.
- Build the project.
Running the Sample
To run the sample:
- Boot the system in its Windows Boot Configuration.
- Navigate to
<InstallDrive>\MaxRT\eRTOS\. - Right-click AutoStart.bat and select Edit.
- Find or write the Run command(s) for SimpleDataExchange.
Note: For more information on Run commands, see Run.
- If using pre-written Run commands, remove the comment characters (: :) to enable the Run command(s).
- Re-boot the system from a GRUB bootable USB drive or hard drive.
- Select the desired GRUB boot configuration. See GRUB Boot Configurations for more information.
- Upon system boot, the sample(s) will run automatically after the eRTOS Kernel startup.
- Sample output will be displayed on the screen when the program ends.
- Re-boot the system in its Windows Boot Configuration.
- Navigate to
<InstallDrive>\MaxRT\eRTOS\. - Open the RtLogFile.txt log file to view sample output.
APIs Referenced