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!