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
| Parameter | Type | Description |
|---|---|---|
<Hz> | number > 0 | Requested cut-off frequency. |
Response
OK UPPER request=<Hz> applied=<Hz>
Errors
| Reply | Condition |
|---|---|
ERR UPPER not_setup | SETUP has not been done. |
ERR UPPER running | Acquisition is running. |
ERR UPPER busy | Another operation is in progress. |
ERR UPPER bad_arg | Missing 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")