Create Custom IO Device Blocks
You can create custom IO device blocks using the IO Device Builder app or use device driver blocks.
Use IO Device Builder app to quickly create a System block for custom or third-party source files (C/C++) using third-party source files. Launch the IO Device Builder app and a series of screens then leads you through the process of creating a System Object, which is then used to create a Simulink block. Choose this option when you need a rapid solution, enabling you to swiftly create a Simulink block.
Use Device Driver block, a specialized form of the MATLAB System block to programmatically create IO blocks with easy access to hardware board features, such as communication protocols or hardware libraries, not available in the Simulink Support Package for Arduino Hardware. Choose this option when you need more extensive capabilities for your custom IO blocks. However, this option might require more time to create the block.
Select one of the following options that best aligns with your specific requirements and desired functionalities.