Before importing the System object™ to Simulink®, it is recommended that you check the operation of the System object in the MATLAB® command line.
Create an instance of the
dw = DigitalWrite()
dw system object and test the
Validating the behavior of the System object at the MATLAB command line helps to identify potential issues or errors in the code. These issues or errors become harder to isolate when the System object is used in a MATLAB System block.
In the next section, you will Create the MATLAB System Block.