Use processor-in-the-loop (PIL) execution to verify code that you intend to deploy in production.
To set up and start a PIL execution from the command line:
Create, register, and verify your target connectivity configuration.
Configure the object for PIL.
codegen function to generate
library code for your MATLAB® function and the PIL interface.
coder.runTest function to run
the test file for your original MATLAB function.
To terminate the PIL execution, use the
The following example shows how you can use line commands to set up and run a PIL execution on your development computer.