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.

Run the MATLAB Function Using Live IO from Hardware

Before deploying the function, running the function by using live input and output (IO) from the hardware is recommended. Using live IO enables you to:

  • Verify that the MATLAB® function is communicating with the hardware as expected.

  • Detect run-time errors, such as peripheral conflicts, that are much harder to diagnose during deployment.

Run the function by using the run command in the MATLAB Command Window:

run blinkLED
When you run the blinkLED function, MATLAB connects to the hardware and starts executing the function on the hardware. The ACT LED starts blinking every 0.5 seconds.

Before deploying the MATLAB function on the hardware, fix any errors you might have detected in this step.