Main Content

Create the MATLAB System Block

To bring theDigitalWritesystem object into Simulink®, follow the steps:

  1. Create a new Simulink model.

  2. From theUser Defined Functionslibrary, add theMATLAB Systemblock to the model.

  3. In the block, setSystem object nametoDigitalWrite.

  4. From theSourceslibrary, add thePulse Generatorblock to the model.

  5. From theSignal Attributeslibrary, add theData Type Conversionblock to the model.

  6. Connect the blocks as shown.

In the next section, you willGenerate Code and Deploy the Model to the Hardwarecontaining your System object.

See Also

|||(Simulink)