pathsim.blocks.mixed.sources module

class pathsim.blocks.mixed.sources.Clock(T=1, tau=0)[source]

Bases: Block

Discrete time clock source block.

Utilizes scheduled events to periodically set the block output to 0 or 1 at discrete times.

Parameters:
  • T (float) – period of the clock

  • tau (float) – clock delay

events

internal scheduled event list

Type:

list[Schedule]

class pathsim.blocks.mixed.sources.SquareWave(amplitude=1, frequency=1, phase=0)[source]

Bases: Block

Discrete time square wave source.

Utilizes scheduled events to periodically set the block output at discrete times.

Parameters:
  • amplitude (float) – amplitude of the square wave signal

  • frequency (float) – frequency of the square wave signal

  • phase (float) – phase of the square wave signal

events

internal scheduled events

Type:

list[Schedule]

class pathsim.blocks.mixed.sources.Step(amplitude=1, tau=0.0)[source]

Bases: Block

Discrete time unit step block.

Utilizes a scheduled event to set the block output at the defined delay.

Parameters:
  • amplitude (float) – amplitude of the step signal

  • tau (float) – delay of the step

events

internal scheduled event

Type:

list[Schedule]