Dear Sir, Thank you for making it clear to me about how a block sample time should be selected. However there is a small typographical mistake in 5th point of the Summary - integer multiple instead of integral multiple, Sir
What is logic inside to get particular sample time when my main sample time is inf or is there any particular block with which we can get sample time of output when we stop simulation.when model sample time is Inf
Sample time or rather "Step Size" i.e. fundental sample time of model depends on certain factors. 1. If you are going to use model for code generation then it doesn't matter what step size you use. Just select fixed step discrete solver. 2. If you are using it for simulation, then it depends on the system you are simulating and what kind of sensors you are using. e.g. For normal room automatic AC set to 25 degree. The temperature sensor readings are not going to change so fast and its functions are also not so critical meaning it is completely OK if temperature is mainteined around 24.5 - 25.5 degree Celsius. For such cases, higher step sizes can be used. Using lower step sizes may increase accuracy but its impact on results is not so important. And using smaller step size may increase simulation time for large models and longer simulations. However, if you are simulating critical robotic behavior like medical robots or vehicle airbag systems, then you must use smaller step sizes as these are life critical functions and needs to be extreamly responsive to its inputs. In these cases simulation time can be compromised over accuracy. So for first example you may use 5 sec as simulation stepsize whereas for second example you may need to use like 20 milliseconds. Hope this helps.
neatly explained with various scenarios. Thank you for uploading
शानदार जबरदस्त जिंदाबाद🎓
Dear Sir, Thank you for making it clear to me about how a block sample time should be selected.
However there is a small typographical mistake in 5th point of the Summary - integer multiple instead of integral multiple, Sir
What is logic inside to get particular sample time when my main sample time is inf or is there any particular block with which we can get sample time of output when we stop simulation.when model sample time is Inf
Can you please do videos on mab guideline and auto code generation
Very well explained. Thank you!
Super bhayya your explanation
what is the value of start time ?
How to select a perticular sample time for the model?
Sample time or rather "Step Size" i.e. fundental sample time of model depends on certain factors.
1. If you are going to use model for code generation then it doesn't matter what step size you use. Just select fixed step discrete solver.
2. If you are using it for simulation, then it depends on the system you are simulating and what kind of sensors you are using.
e.g. For normal room automatic AC set to 25 degree. The temperature sensor readings are not going to change so fast and its functions are also not so critical meaning it is completely OK if temperature is mainteined around 24.5 - 25.5 degree Celsius. For such cases, higher step sizes can be used. Using lower step sizes may increase accuracy but its impact on results is not so important. And using smaller step size may increase simulation time for large models and longer simulations.
However, if you are simulating critical robotic behavior like medical robots or vehicle airbag systems, then you must use smaller step sizes as these are life critical functions and needs to be extreamly responsive to its inputs. In these cases simulation time can be compromised over accuracy.
So for first example you may use 5 sec as simulation stepsize whereas for second example you may need to use like 20 milliseconds.
Hope this helps.
@@simulationguruji4337 yes thank you very much for the explanation
Can you please share simulink videos pls
Background music is very irritating
Noted, Thank you for feedback.