4.1.3 Build an Application FBP
We are now ready to create an application to play the simple theme music.
Click and enter the Application Management page
Clcik the Create New button and then enter the name of the application, "app1" in our example.
Click on the application name just created to open the composition canvas.
Click on the WuClasses tab to show all WuClasses available for FBP composition. All existing WuClasses on the Master database will be displayed.
Scroll through the WuClass list to find the UIButton component. Click its selection button and the Add button at the bottom. Repeat this step for the Intel_Sound component. Two component boxes will be shown on the composition canvas.
To add a link between the two components, first click on the source component. After the source component has been highlighted, click on the source property, the "click" property in this example. Then, move the cursor and click on the destination property of the destination component.
Check whether the source and the destination of the data link created are correct. If not, you can change them in the dropout menu.
(Optional) Enter the location for each component using the 5 steps in the following figures. Note that even if the location of each component is left empty, Master can still choose a suitable device for each component according to the device's sensor profile.
Click on the Application tab and the Save button.
Click on the Map button to select the device to run each component.
After the mapping procedure, the mapping results will be displayed as follows.
If everything is successful, you can now click on the Deploy button to run the application.
Messages will be displayed if WuKong is able to deploy the application successfully.