Example: "I am" for SMD / SMQ Combination

Top  Previous  Next

This example combines one SMD with one SMQ in the same application. The application demonstrates how you can easily exchange data between the processors of these two boards 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 iam is placed on each DSP, and one instance of 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:

 

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"!

Hello, I am task "iam_5" placed on processor "smd_dsp1"!

Hello, I am task "iam_6" placed on processor "smd_dsp2"!

 

Prerequisites

You  need the following components to be able to run this example:

 


Hardware

Quantity


SignalMaster Quad

1


SignalMaster Dual

1


DRC

1


RapidChannel cable

2


3L Diamond DSP licence

unlimited


3L Diamond FPGA licence

unlimited

 

The following picture shows the system: