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 therun
command in the MATLAB Command Window:
runblinkLED
blinkLED
function, 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.