measure_softcode_latency
- measure_softcode_latency(bpod: BpodWithLatencyTest, n_trials: int = 100)[source]
Measures the round-trip latency of softcodes sent to Bpod.
Sends a softcode to Bpod and waits for an echo response (softcode opcode 2), measuring the time taken for the round trip.
- Parameters:
bpod (BpodWithLatencyTest) – The Bpod instance wrapper to test.
n_trials (int, optional) – Number of trials to run. Defaults to 100.