Initialization commands cannot be evaluated for noise block in simulink
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
Hi I am simulating Gaussian noise generator block in simulink.But I am receiving following errors.Can any one please help me how to fix this.
1. Error in 'test1/Gaussian Noise Generator': Initialization commands cannot be evaluated. here test1 is name of simulink model. 2.Undefined function or method 'commblkgaussiansrc2' for input arguments of type 'cell'.
Thank you for your answers.
採用された回答
What are the parameters that you provided at the parameter dialog window, such as Mean value, Variance, Initial seed, Sample time and Samples per frame. The error message indicates you might have provided a data which is in the type of cell array. Try some very simple example first. If you have data in cell array, such as data={1,2,3}, use data{1} to refer to the first value in the cell array data.
10 件のコメント
Hi Jiang thank you for your response.
But I am using only gaussian noise generator block and scope in my simulink model.
noise block parameter values ar as follows
Mean:0
variance:1
initial seed: 41
sample time: 1
output data type: double
Still I am getting similar problem.
When I double click gaussain noise generator block in simulink model it shows following message with in stars.
****************************************************************
error due to multiple causes
--> Error evaluating 'Mask Callback' callback of gaussian noise generator block (mask) 'gaussian noise generator'.Undefined function or method
'commblkgaussiansrc2' for input arguments of type 'char'.
-->Undefined function or method
'commblkgaussiansrc2' for input arguments of type 'char'.
--> Error evaluating 'Mask Callback' callback of gaussian noise generator block (mask) 'gaussian noise generator'.Undefined function or method
'commblkgaussiansrc2' for input arguments of type 'char'.
-->Undefined function or method
'commblkgaussiansrc2' for input arguments of type 'char'.
******************************************************************
Except this noise block all other blocks are working fine in simulink.
Can you please suggest how to fix this.
commblkgaussiansrc2.m is a utility that should ship with the Communications Toobox. Try running "which commblkgaussiansrc2" and see what it says. If it doesn't find anything, run "rehash toolbox" and try again.
Yes. The error sounds like you don't have or couldn't check out a license for the Communications Toolbox. When you say "all other blocks", do you refer to Simulink blocks or other blocks within the Communications toolbox? Please follow Kaustubha's advice to check that file first.
Hi Kastubha ,
when I run "which commblkgaussiansrc2" . matlab shows like below.
C:\Programfiles\MATLAB\R2010a\toolbox\commblks\commmasks\commblkgaussiansrc2.m % Has no license available
Recently I updated my matlab license.I think that may be reason why it doesn't work.
when i check
>>license('inuse')
matlab
signal_blocks
signal_toolbox
simulink
simulink_design_optim
Can you please suggest me how to update license of this particular toolbox (communications blockset)
Thank you very much for making me to understood what causes the problem.
Hi Jiang,
Thank you. It seems I have problem with license for communication toolbox. Can you please suggest how to update license for this toolbox only
Are you using stand-alone license or shared network license? What version of MATLAB are you using? The Communications Systems Toolbox is new in R2011a combining two previous toolbox. See http://www.mathworks.com/company/pressroom/MathWorks-Announces-Release-2011a-of-the-MATLAB-and-Simulink-Product-Families.html. Contact TMW to see if you are eligible for a upgrade.
Anyway, I think the solution for the problem is to get the toolbox.
Hi Jiang,
Thank you for your continuous support.
Im using MATLAB (R2010a) version.
can you please suggest me how to download this Communications Blockset from mathworks
Hi Kaustubha Govind,
I am using matlab with license from my univ.
All other blocks are working except communication blockset.
when I run "which commblkgaussiansrc2". It shows like
>> which commblkgaussiansrc2
C:\Program Files\MATLAB\R2010a\toolbox\commblks\commmasks\commblkgaussiansrc2.m % Has no license available
>>
Can you please mention how can I activate license for this toolbox.
thank you very much for help.
If your university purchased and installed the toolbox, there is really no need to activate it. Once you try to drag and use that Gaussian noise generator block, the license will be checked in (assume it is available if it is a network license). Are you using stand-alone license or network license. The best way is to call TWM tech support. Type ver in Command Window to find out your license number. Give it to TWM and they will tell you what your options are.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Communications Toolbox についてさらに検索
参考
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)
