Documentation Center    • 評価版   • 製品アップデート  Create Custom Blocks
You can create custom Receive and Transmit blocks to use with
hardware currently not supported by the Vehicle Network
Toolbox™.  Vehicle Network Toolbox blocks use a custom CAN data
type. To use the blocks you create with other Vehicle Network
Toolbox blocks, register this custom CAN data type.  To use the
custom data type defined in the Vehicle Network Toolbox, write a
C++ S-function.      Note:   You must use a C++ file type
S-function (.cpp) to create custom blocks. Using a C-file type
S-function (.c) may cause linker errors.  To register and use
the custom CAN data type, in your S-function:    1. Define the
IMPORT_SCANUTIL identifier that imports the required symbols
when you compile the S-function:    2. Include the
can_datatype.h header located
in[MATLABROOT]\toolbox\vnt\vntblks\include\candatatype at the
top of the S-function:      #include "can_datatype.h"
Note:   The header can_message.h included by can_datatype.h is
located in