Skip to main content

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 OFF enable 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​

ParameterTypeDescription
<Hz>number > 0Requested cut-off frequency.
ON / OFFkeywordEnable or bypass the filter.

Response​

OK DSP request=<Hz> applied=<Hz>
OK DSP dsp=ON
OK DSP dsp=OFF

Errors​

ReplyCondition
ERR DSP not_setupSETUP has not been done.
ERR DSP runningAcquisition is running.
ERR DSP busyAnother operation is in progress.
ERR DSP bad_argMissing 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")