Clear Filters
Clear Filters

xPC Target: target scope issue (Scope: #, does not exist)

3 views (last 30 days)
I have a model with 4 target scopes, numbered 1-4, that builds with no errors. When I run this model on the target, all four scopes display properly, but error messages are repeatedly displayed in the top right corner of the screen. Since the display refreshes very quickly, the error messages fill the screen in a repeating pattern.
This is what is repeatedly displayed in the top right corner of the screen:
Scope: 5, does not exist
Scope: 6, does not exist
Scope: 7, does not exist
I have tried restarting the machines, clearing my workspace, deleting the project and build folders, and rebuilding the model, but the error message remains.
Does anyone have ideas as to how to prevent these errors from occuring (or if this is not possible, how to suppres the errors)?
  2 Comments
Robert Barr
Robert Barr on 12 Oct 2013
I'm seeing the same thing using R2013b. I added 2 target scopes to xpcosc.mdl and everything built and functioned correctly. If I remove either of the scopes and rebuild in external mode, as soon as the application loads, I get the scope does not exist message continuously. I have not tried all the steps you listed attempting to repair it yet. Are you still having the problem? Is there a fix for this?
M LaRosa
M LaRosa on 22 Oct 2013
This is what I have been doing that seems to work (not sure exactly which steps are important in solving the problem):
To clear Scope: #, does not exist errors displayed on the target machine, do the following in the specified order: (1) disconnect all target machines, (2) restart MATLAB, (3) delete the build and project folders associated with the model, (4) rebuild the model, (5) restart the target machine, (6) reconnect all target machines, (7) open xPC Explorer, and (8) load the model onto the target machine. Do not open xPC Explorer or connect target machines after restarting MATLAB until offending models have been rebuilt.

Sign in to comment.

Accepted Answer

M LaRosa
M LaRosa on 22 Oct 2013
This is what I have been doing that seems to work (not sure exactly which steps are important in solving the problem):
To clear Scope: #, does not exist errors displayed on the target machine, do the following in the specified order: (1) disconnect all target machines, (2) restart MATLAB, (3) delete the build and project folders associated with the model, (4) rebuild the model, (5) restart the target machine, (6) reconnect all target machines, (7) open xPC Explorer, and (8) load the model onto the target machine. Do not open xPC Explorer or connect target machines after restarting MATLAB until offending models have been rebuilt.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!