Why parameter " yout " doesnt exist to workspace ?
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
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 件のコメント
HamidReza Saleh
2016 年 9 月 15 日
could you explain more ? i just run my simulation from simulink and doesnt give me yout
Walter Roberson
2016 年 9 月 15 日
"[...] 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.
HamidReza Saleh
2016 年 9 月 15 日
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 ??
Walter Roberson
2016 年 9 月 15 日
Can you post the .slx and the instructions for using it to recreate the problem?
HamidReza Saleh
2016 年 9 月 15 日
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.
HamidReza Saleh
2016 年 9 月 15 日
could you do the changes and send it back ?
HamidReza Saleh
2016 年 9 月 15 日
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
Walter Roberson
2016 年 9 月 16 日
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.
HamidReza Saleh
2016 年 9 月 16 日
youre comment was so help full thank you
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
