Error Getting Simulink Real-Time Target parameters

4 views (last 30 days)
I am working in MATLAB 2018b and am having issues when building a Simulink model initiallly created in MATLAB 2015b. I have addressed all issues noted by the Update Advisor (such as saving the model in 2018b) and am now working on generating the actual application to be loaded on the target computer. However, during the build process, I receive an error stating that "Property 'xPCisDefaultEnv' does not exist". The error occurs during a get_param('xPCisDefaultEnv') call in what appears to be a SLRT function, "checkTargetName.m".
I am aware that many of the references to the XPC parameters have been/are being phased out. However the release notes for Simulink Real-Time indicate that this particular model parameter should still work in 2018b (not phased out until 2019b). My only guess is that my SLRT version got out of sync, but I verified my model is saved in SimulinkVersion 9.2, and my installed SLRT toolbox is 6.9.
Searching the Configuration Parameters window also suggest that this parameter should exist under Code Generation > Simulink Real-Time Options > "Target Options" , but the get_param call still fails.
Any suggestions on what might be causing the 'xPCisDefaultEnv' parameter to not be found?

Accepted Answer

Edward Martinez
Edward Martinez on 22 Oct 2019
Solved this issue by re-installing MATLAB. I opened up the same model on another machine with a R2018b installating and there were no issues with the xPC parameters. I had tried uninstalling before, but turns out I had to manually delete the R2018b directory as there were some residual files left after the uninstall. After re-installing, the simulink was able to find the desired parameters.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!