Why parameter " yout " doesnt exist to workspace ?
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
Hi I try to sent one parameter from simulink to workspace the parameter i seek is variable from block yout in powergui i checked the mark from model configuration yout but doesnt show in workspace do you have any suggestion ??
채택된 답변
Walter Roberson
2016년 9월 15일
How are you starting the model running? If you are starting it from MATLAB using sim() then the variable would normally end up in the workspace of the function you ran sim() from.
댓글 수: 10
could you explain more ? i just run my simulation from simulink and doesnt give me yout
"[...] Data is not available until the simulation is stopped or paused.
For menu-based simulation, data is written in the MATLAB® base workspace.
A sim command in a MATLAB function sends data logged with the To Workspace block to the workspace of the calling function, not to the MATLAB (base) workspace. To send the logged data to the base workspace, use an assignin command in the function."
So if you are running from the menus or by clicking on the diagrams, then your data should show up in the base workspace, once the model stops or is paused. Make sure you are examining the base workspace.
the variable i seek is creating from powergui named YOUT and problem is that each time i use to workspace it vanished during simulation what should i do ??
Can you post the .slx and the instructions for using it to recreate the problem?
and by the way the model is too slow and i assume that if i use the code on it would be slower than before , do you suggest any advise ? do you think there would be way to solve the problem and boost up the speed ??
You have the command in there
evalin('base','sim(''PrPUPFCSVM2'')');
so you are invoking sim(), rather than running from the menu.
However, DataGeneration.m appears to be a script rather than a function, so as long as you invoked it from the command line, it is going to be executing in the base workspace. Have a look at the very next line of code:
x =yout(1600:2799, :);
this tells you that Yes, yout is being retrieved from the workspace and is being used for further computation. It should still be there in the base workspace.
could you do the changes and send it back ?
i checked it , there is no yout in my base workspace , is it working for you ? did you fix it ? if yes just please send it back and by the way if you didnt realize yout is the parameter coming from block name yout , created after simulation done in powergui
I had another look. There does not appear to be a yout there. There is a Yout (capital Y) which is a subsystem (not a signal), with the subsystem having a Demux block that sends the individual elements to a whole bunch of different blocks.
If you are trying to get a copy of that signal before demuxing, you will need to add a tap off of the source of that subsystem, v,i and have a Save To Workspace block there. I do not find a To Workspace block there.
youre comment was so help full thank you
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulation and Analysis에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
