Main Content

Run theMATLABFunction Using Live IO from Hardware

在部署th之前e 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 theruncommand in the MATLAB Command Window:

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

在部署th之前e MATLAB function on the hardware, fix any errors you might have detected in this step.

Related Topics