SPIKE MASK
Syntax
SPIKE MASK ALL or SPIKE MASK MASK <hex> or SPIKE MASK CH <ch0,ch1,...>
(The channel selector is written exactly as in SPIKE ON: ALL, MASK <hex> or CH <list>.)
Description
Changes which channels take part in spike detection, without stopping the detector and without changing its threshold, polarity or refractory period. It works whether detection is already on or not.
Response
OK SPIKE MASK mask=0x<hex>
The reply echoes the resulting bitmask, whichever form was used.
Errors
| Reply | Condition |
|---|---|
ERR SPIKE MASK bad_arg | Invalid or empty selection, or a channel out of range. |
Example
spike_mask.py
from hmcls_udp import Board
board = Board("192.168.1.11")
board.request("SPIKE MASK CH 0,1")
print(board.request("SPIKE MASK ALL")["mask"])