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.
-
configure
(t_s, sz)[source]¶ Configure the poller.
- 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)
-
property
num_channels
¶ Number of channels in the poller.
- Type
int