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
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.