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.

Block Produces Zeros or Does Nothing in Simulation

If you simulate a model on your host computer without running it on your target hardware:

  • Input blocks produce zeros.

  • Output blocks do nothing.

This is the expected behavior.

For example, in a model, if you select Simulation > Mode > Normal and then select Simulation > Run, the following happens:

  • The sensor block and Digital Input block send zeros to the model.

  • The Digital Output block does nothing.

To see the blocks work normally, run your model on target hardware or use External mode.

To run the model on target hardware, select Tools > Run on Target Hardware > Prepare to Run. Then, click the Deploy to Hardware button.

To use External mode, select Simulation > Mode > External. Then, select Simulation > Run.

Related Topics