Control and filtering

lock

A simple lock which computes and applies the feedback to a given parameter using an error signal.

Syntax

lock name errsig feedback_to gain accuracy disabled=false offset=0

Required

name: Name of newly created lock.

errsig: An error signal parameter or an object capable of producing a real-type error signal. This is typically a demodulated PowerDetector instance (or the name of the instance).

feedback_to: A parameter of the model to apply the locks’ feedback signal to.

gain: Control loop gain.

accuracy: Threshold to decide whether the loop is locked.

disabled: If true this lock will not run when the RunLocks() action is used. Explicitly specifying the name of the lock will override this setting, e.g. RunLocks(name).

offset: An offset that is applied to the error signal before it is used.

degree_of_freedom
dof
Syntax

dof name node amplitude=1 DC=0 {arg1{ arg2{ ...}}}

amplifier
amp
Syntax

amp name gain=1

filter_zpk
zpk
Syntax

zpk name z p k fQ=false gain=1

filter_butter
butter
Syntax

butter name order btype frequency gain=1 analog=true

filter_cheby1
cheby1
Syntax

cheby1 name order rp btype frequency gain=1 analog=true

zpk_actuator
actuator
Syntax

actuator name mechanical_node gain=1 z=[] p=[] k=1