Poller

class ingenialink.ipb.poller.IPBPoller(servo, num_channels)[source]

IPB poller.

Parameters
  • servo (IPBServo) – Servo.

  • num_channels (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 the poller.

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

  • sz (int) – Buffer size.

start()[source]

Start poller.

stop()[source]

Stop poller.

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)

property num_channels

Number of channels in the poller.

Type

int

property servo

Servo instance to be used.

Type

Servo