-
// generate the main menu
include ("include/vcc_menu.php"); ?>
// select and link a stylesheet include ("style/style.php"); ?>
// end of #mainmenu ?>VCC supports complex, user defined datatypes much like C itself. This section explains how to define your own datatypes and create messages of that type, which can then be sent between blocks.
Before you can use a datatype, it must be defined in the VCC datatye window as follows:
Now we can create a message of type @tutorial_2002.composite1 and output it through a port using the following white box C code.
Here's the corresponding code to read the message when it reaches its destination.
Before the above code will compile, you may need to edit the white.interface.h files of the blocks that use the new datatype. To do this, right-click on the code window of each block, choose edit white_interface.h and add the following lines:
These lines should appear between the existing #ifndef and #endif processing directives. If your behaviour includes a port to send/receive messages of the new datatype, the above lines will have been added automatically.