control.timebase

control.timebase(sys, strict=True)[source]

Return the timebase for a system.

dt = timebase(sys)

returns the timebase for a system ‘sys’. If the strict option is set to True, dt = True will be returned as 1.

Parameters
sysInputOutputSystem or float

System whose timebase is to be determined.

strictbool, optional

Whether to implement strict checking. If set to True (default), a float will always be returned (dt = True will be returned as 1).

Returns
dttimebase

Timebase for the system (0 = continuous time, None = unspecified).