필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
M LaRosa
M LaRosa 2013년 7월 24일
답변: M LaRosa 2013년 10월 22일
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
Robert Barr
Robert Barr 2013년 10월 12일
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 2013년 10월 22일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

M LaRosa
M LaRosa 2013년 10월 22일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by