Poller

class ingenialink.poller.Poller(servo, n_ch)[source]

Register poller.

Parameters
  • servo (Servo) – Servo.

  • n_ch (int) – Number of channels.

Raises

ILCreationError – If the poller could not be created.

ch_configure(ch, reg)[source]

Configure a poller channel mapping.

Parameters
  • ch (int) – Channel to be configured.

  • reg (Register) – Register to associate to the given channel.

Raises

TypeError – If the register is not valid.

ch_disable(ch)[source]

Disable a channel.

Parameters

ch (int) – Channel to be disabled.

ch_disable_all()[source]

Disable all channels.

configure(t_s, sz)[source]

Configure.

Parameters
  • t_s (int, float) – Polling period (s).

  • sz (int) – Buffer size.

property data

Obtains processed data.

Returns

Time vector, array of data vectors and a

flag indicating if data was lost.

Return type

tuple (list, list, bool)

start()[source]

Start poller.

stop()[source]

Stop poller.