|
Example: "I am" for SMQ |
Top Previous Next |
|
The application demonstrates how you can easily exchange data between the processors of the SMQ using Diamond.
The example uses two tasks: main and iam. Task iam reads a string from its input port, adds to it its own instance name and the name of the processor it is placed on and sends the result to its output port. Task main generates an empty string which it sends on its output port to get the process started.
One instance of task iam is placed on each DSP. One instance of task main is placed on the root DSP.
Running the Example Users of the SignalMaster Quad should select the type of board they have as shown here.
You can build the application by typing Ctrl+B and then execute it by clicking run.
You should see the following output when running the example:
Hello, I am task "iam_1" placed on processor "smq_dsp1"! Hello, I am task "iam_2" placed on processor "smq_dsp2"! Hello, I am task "iam_3" placed on processor "smq_dsp3"! Hello, I am task "iam_4" placed on processor "smq_dsp4"!
Prerequisites You need the following components to be able to run this example:
|