ERROR : "Undefined function or variable 'ts'". While running the program
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (3)
Kaustubha Govind
el 9 de Jul. de 2012
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 comentarios
Image Analyst
el 7 de Jul. de 2012
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 comentarios
Farah Riaz
el 2 de Jun. de 2021
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 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!