Skip to main content

SPEED

Syntax​

SPEED <value>

Description​

Sets the acquisition sampling rate. Lower values give higher rates. The default value, 999, gives 8 kHz per channel.

SPEED does not need SETUP, but must be sent while acquisition is stopped. If SETUP has already been done, the digital filter keeps the same cut-off in Hz.

Parameters​

ParameterTypeRangeDescription
<value>integer1–65535Rate setting. Lower = faster sampling.

Response​

OK SPEED … fs=<Hz>

fs is the resulting sampling rate in Hz, per channel. Replies may carry other key=value fields; ignore the ones you do not know. A EVT config event is also sent to the owner.

Errors​

ReplyCondition
ERR SPEED runningAcquisition is running. Send STOP first.
ERR SPEED busyAnother operation is in progress.
ERR SPEED bad_argMissing argument or value outside 1–65535.

Example​

speed.py
from hmcls_udp import Board

board = Board("192.168.1.11")
board.request("STOP")
reply = board.request("SPEED 999")
print("sampling at", reply["fs"], "Hz per channel")