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
| Parameter | Type | Range | Description |
|---|---|---|---|
<value> | integer | 1–65535 | Rate 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
| Reply | Condition |
|---|---|
ERR SPEED running | Acquisition is running. Send STOP first. |
ERR SPEED busy | Another operation is in progress. |
ERR SPEED bad_arg | Missing 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")