# Multiple Channel Stream Library Demos

## Location

`$TwlSystem/build/demos/mcs`

## Compilation

### For Nintendo DS Programs

Move to the `$TwlSystem/build/demos/mcs` directory and run:

> `% make`

Executable files (NEF and SRL files) are generated in:

> `$TwlSystem/build/demos/mcs/(sample name)/nitro/bin/(platform)/(target)/`

For example:

> `$TwlSystem/build/demos/mcs/basic/nitro/bin/ARM9-TS/Release/`

The MCS library is used for debugging, so the (platform) directory does not normally operate with "Rom" version executable files.

### For the Windows Program

There are two types: the C++ version; and the C# version.

#### For the C++ Version

To compile a program, you must have Visual Studio 2005 or later installed.

Move to the `$TwlSystem/build/demos/mcs/(sample name)/win` directory and open the `(sample).sln` file. Next, build in Visual Studio. Executable files are created in:

> `$TwlSystem/build/demos/mcs/(sample name)/win/(target)/`

For example:

> `$TwlSystem/build/demos/mcs/basic/win/Release/`

#### For the C# Version

To compile a program, you must have Visual Studio 2008 or later installed.

Move to the `$TwlSystem/build/demos/mcs/(sample name)/win_csharp` directory and open the `(sample).sln` file. Next, build in Visual Studio. Executable files are created in:

> `$TwlSystem/build/demos/mcs/(sample name)/win_csharp/bin/(target)/`

For example:

> `$TwlSystem/build/demos/mcs/basic/win_csharp/bin/Release/`

## Execution

1. Start the mcs server and connect it with the Nintendo DS hardware.

2. Open the SRL file in the `$TwlSystem/build/demos/mcs/(sample name)/bin/(platform)/(target)` directory. After a moment, the program starts on the Nintendo DS hardware.

3. For the `basic` sample, also run a Windows program under either of the directories below.

   - `$TwlSystem/build/demos/mcs/basic/win/(target)`
   - `$TwlSystem/build/demos/mcs/basic/win_csharp/bin/(target)/`

## Description

`basic` (DS source) (Windows source) | Moves the picture displayed on the Nintendo DS BG screen in accordance with the coordinate data sent from the Windows program side. If one Windows program has been started, the picture will scroll from side to side. If two Windows programs have been started, the picture will scroll diagonally.
`file_io` (DS source) | Loads the file from the PC and, after its contents have been reversed, writes a new file back to the PC.

## Operating Environment

Normal operation for all of the samples using IS-NITRO-EMULATOR and Ensata has been confirmed.

## See Also

An Overview of the MCS Functions

## Revision History

2005/04/04 Corrected an error in a directory path.
2005/01/28 Initial version.

CONFIDENTIAL