Monitor¶
- class ingenialink.monitor.MONITOR_TRIGGER(value)[source]¶
Monitor Trigger Types.
- DIN = 5¶
Digital input.
- IMMEDIATE = 0¶
Immediate.
- MOTION = 1¶
Motion start.
- NEG = 3¶
Negative.
- POS = 2¶
Positive.
- WINDOW = 4¶
Exit window.
- class ingenialink.monitor.Monitor(servo)[source]¶
Monitor.
- Parameters
servo (Servo) – Servo instance.
- Raises
ILCreationError – If the monitor could not be created.
- ch_configure(ch, reg)[source]¶
Configure a channel mapping.
- Parameters
ch (int) – Channel.
reg (str, Register) – Register to be mapped to the channel.
- configure(t_s, delay_samples=0, max_samples=0)[source]¶
Configure the monitor parameters.
- Parameters
t_s (int, float) – Sampling period (s, resolution: 1e-4 s).
delay_samples (int, optional) – Delay samples.
max_samples (int, optional) – Maximum acquisition samples.
- property data¶
Obtain configured data.
- Returns
Current acquisition time and data for all channels.
- Return type
tuple
- trigger_configure(mode, delay_samples=0, source=None, th_pos=0.0, th_neg=0.0, din_msk=0)[source]¶
Configure the trigger.
- Parameters
mode (MONITOR_TRIGGER) – Trigger mode.
delay_samples (int, optional) – Delay samples.
source (str, Register, optional) – Source register, required for MONITOR_TRIGGER.POS, MONITOR_TRIGGER.NEG and MONITOR_TRIGGER.WINDOW.
th_pos (int, float, optional) – Positive threshold, used for MONITOR_TRIGGER.POS, MONITOR_TRIGGER.WINDOW
th_neg (int, float, optional) – Negative threshold, used for MONITOR_TRIGGER.NEG, MONITOR_TRIGGER.WINDOW
din_msk (int, optional) – Digital input mask, used for MONITOR_TRIGGER.DIN