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.
Create a coder.EmbeddedCodeConfig
object.
Configure the object for PIL.
Use the codegen
function
to generate library code for your MATLAB® function and the PIL
interface.
Use the coder.runTest
function
to run the test file for your original MATLAB function.
To terminate the PIL execution, use the clear
or function
_pilclear
mex
command.
The following example shows how you can use line commands to set up and run a PIL execution on your development computer.