matlab.system.setNumTicksUntilNextHit - Set the number of ticks in Simulink sample time - MATLAB (original) (raw)
Main Content
Set the number of ticks in Simulink sample time
Syntax
setNumTicksUntilNextHit(obj,ticks)
Description
setNumTicksUntilNextHit([obj](#d126e593651),[ticks](#d126e593681))
sets the number of ticks in Simulink® sample time to wait until the next call to stepImpl
, oroutputImpl
/updateImpl
.
Dependencies
To use this method, set your System object™ to controllable sample time with createSampleTime('Type','Controllable'). Otherwise, your System object gives a compilation error.
You can only call this method from stepImpl
,outputImpl
, updateImpl
, orresetImpl
.
Input Arguments
System object that you want to specify the sample time.
Number of ticks in Simulink sample time to wait until the next call to stepImpl
oroutputImpl
/updateImpl
. Specify this number as a positive integer scalar less than intmax('uint64')
.
The number of sample time ticks to wait until the next hit is persistent. If you don’t update this number, Simulink uses the previously set value of number of ticks to wait.
Version History
Introduced in R2018a