This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Test System Object on MATLAB Command Line

Before importing the System object™ to Simulink®, it is recommended that you check the operation of the System object in the MATLAB® command line.

  1. Create an instance of the DigitalWrite class.

    dw = DigitalWrite()
  2. Execute the stepImpl method

    step(dw,1)
  3. Remove the dw system object and test the releaseImpl method.

    clear dw

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.

See Also

| |