Skip to main content

UPPER

Syntax​

UPPER <Hz>

Description​

Sets the upper cut-off of the analog amplifier, in Hz: signals above this frequency are attenuated (low-pass). Very high values are limited to the maximum the hardware supports, and the reply tells which value was applied.

SETUP must have been done, and acquisition must be stopped. The value is kept by the board and re-applied by every later SETUP.

Parameters​

ParameterTypeDescription
<Hz>number > 0Requested cut-off frequency.

Response​

OK UPPER request=<Hz> applied=<Hz>

Errors​

ReplyCondition
ERR UPPER not_setupSETUP has not been done.
ERR UPPER runningAcquisition is running.
ERR UPPER busyAnother operation is in progress.
ERR UPPER bad_argMissing or non-positive value.

Example​

upper.py
from hmcls_udp import Board

board = Board("192.168.1.11")
board.request("STOP")
reply = board.request("UPPER 5000")
print("applied:", reply["applied"], "Hz")