ERROR : "Undefined function or variable 'ts'". While running the program
17 ビュー (過去 30 日間)
古いコメントを表示
Error evaluating parameter 'SampleTime' in 'twentyfourpulse/VCIMD/Unit Delay4': Undefined function or variable 'ts'.
PLease help me out,my project date is soon approaching
0 件のコメント
回答 (3 件)
Kaustubha Govind
2012 年 7 月 9 日
Your model has a block sample time set to the variable 'ts', which needs to exist in the workspace. You can create this variable and assign it a reasonable value in the base workspace. Alternatively, if you're not sure what the value should be, you can double-click on the block 'twentyfourpulse/VCIMD/Unit Delay4' and change the sample time from ts to -1.
0 件のコメント
Image Analyst
2012 年 7 月 7 日
This page will help you immensely: http://www.mathworks.com/help/techdoc/matlab_prog/f10-60570.html It tells you how you can debug your program, like how to set a breakpoint and examine variables at that point in your code. You will see that when it comes time to use ts, that ts doesn't yet exist - it has no value and doesn't even exist.
0 件のコメント
Farah Riaz
2021 年 6 月 2 日
what value should i assigned to sample time with this error?
nvalid setting in 'dc/Active Rectifier/Detailed/Bus controller/Unit Delay4' for parameter 'SampleTime'.
Caused by:
Error evaluating parameter 'SampleTime' in 'dc/Active Rectifier/Detailed/Bus controller/Unit Delay4'
Undefined function or variable 'Ts'.
Component: Simulink | Categ
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!