Skip to main content

SET_CHIP_MODE

Syntax​

SET_CHIP_MODE <mode>

Description​

Selects the acquisition mode: real acquisition from the connected headstage, or a simulation that generates synthetic data with no headstage connected. The simulation is useful to test scripts and software without hardware.

Acquisition must be stopped. Changing the mode invalidates the current configuration: send SETUP again before START.

Parameters​

ParameterValueDescription
<mode>HWReal acquisition from the connected headstage.
SIMSimulation: synthetic data, no headstage required.

Response​

OK SET_CHIP_MODE mode=<HW|SIM>

Errors​

ReplyCondition
ERR SET_CHIP_MODE bad_argMissing or unrecognised mode.
ERR SET_CHIP_MODE runningAcquisition is running.
ERR SET_CHIP_MODE busyAnother operation is in progress.
ERR SET_CHIP_MODE unsupportedThe requested mode is not available in this firmware.

Example​

set_chip_mode.py
from hmcls_udp import Board

board = Board("192.168.1.11")
board.request("STOP")
board.request("SET_CHIP_MODE SIM")
board.request("SETUP", timeout=5.0)
board.request("START") # streams synthetic data