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.

Create the MATLAB System Block

To bring the DigitalWrite system object into Simulink®, follow the steps:

  1. Create a new Simulink model.

  2. From the User Defined Functions library, add the MATLAB System block to the model.

  3. In the block, set System object name to DigitalWrite.

  4. From the Sources library, add the Pulse Generator block to the model.

  5. From the Signal Attributes library, add the Data Type Conversion block to the model.

  6. Connect the blocks as shown.

In the next section, you will Generate Code and Deploy the Model to the Hardware containing your System object.

See Also

| | |