MATLAB: Do I get an error stating “Unable to resolve the name xpctarget.fs”

namereal timeresolvexpctarget

I transitioned from R2017b to R2019b and when running my model I receive an error stating "Unable to resolve the name xpctarget.fs". How do I resolve this?

Best Answer

In R2014a, xPC Target™ was updated and renamed to Simulink® Real-Time™.
We continued the support for the xpctarget until R2017b. In R2018a, these legacy functions were removed as specified in the following release notes:
In R2019b you should be able to use SimulinkRealTime.fileSystem for the same functionality. Here is the documentation link for your reference:
Note: In a future release, support for the SimulinkRealTime.fileSystem object will be removed. Therefore I would recommend using the SimulinkRealTime.openFTP function and functions from the MATLAB ftp class instead. Here is a documentation link for your reference: