PHD Discussions Logo

Ask, Learn and Accelerate in your PhD Research

Question Icon Post Your Answer

Question Icon

6 years ago in Case Study By Suresh

Time based vs sample based square wave pulse in simulink

All Answers (4 Answers In All)

By Govind Answered 5 years ago

In sample-based mode, you have to activate the setting by changing the pulse type parameter to sample-based mode. 
In sample-based mode, the block will compute its output at fixed intervals that is specified by the user. 
A crucial difference between the sample-based mode and time-based is that in time-based mode, the output of the block is based 
on the simulation time and in sample-based mode, the output of the block output will depend only on the simulation start and the block supports reset semantics.

By Trisha Answered 5 years ago

In time-based mode, simulink computes the output of the block only when the output changes. 
This leads to fewer computations for the output of the block over the simulation time period. 
In time-based mode, depending upon the pulse waveform features, the intervals between changes in the block output will differ. 
For the same reason, a time-based pulse generator block will have a variable sample time.

By Trisha Answered 5 years ago

In time-based mode, simulink computes the output of the block only when the output changes. 
This leads to fewer computations for the output of the block over the simulation time period. 
In time-based mode, depending upon the pulse waveform features, the intervals between changes in the block output will differ. 
For the same reason, a time-based pulse generator block will have a variable sample time.

By Divya Answered 5 years ago

Fathima, visit https://in.mathworks.com/help/simulink/slref/signalgenerator.html
 

Your Answer