DSP
Syntax
DSP <Hz> or DSP ON or DSP OFF
Description
Controls the digital offset-removal filter (a digital high-pass).
DSP <Hz>sets its cut-off. The filter works in discrete steps that depend on the sampling rate; the reply tells which cut-off was applied.DSP ON/DSP OFFenable or bypass the filter without changing its cut-off.
SETUP must have been done, and acquisition must be stopped. The settings are kept by the board and re-applied by every later SETUP.
Parameters
| Parameter | Type | Description |
|---|---|---|
<Hz> | number > 0 | Requested cut-off frequency. |
ON / OFF | keyword | Enable or bypass the filter. |
Response
OK DSP request=<Hz> applied=<Hz>
OK DSP dsp=ON
OK DSP dsp=OFF
Errors
| Reply | Condition |
|---|---|
ERR DSP not_setup | SETUP has not been done. |
ERR DSP running | Acquisition is running. |
ERR DSP busy | Another operation is in progress. |
ERR DSP bad_arg | Missing or invalid value. |
Example
dsp.py
from hmcls_udp import Board
board = Board("192.168.1.11")
board.request("STOP")
print(board.request("DSP 1.0")) # request / applied
board.request("DSP OFF")