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
| Parameter | Value | Description |
|---|---|---|
<mode> | HW | Real acquisition from the connected headstage. |
SIM | Simulation: synthetic data, no headstage required. |
Response
OK SET_CHIP_MODE mode=<HW|SIM>
Errors
| Reply | Condition |
|---|---|
ERR SET_CHIP_MODE bad_arg | Missing or unrecognised mode. |
ERR SET_CHIP_MODE running | Acquisition is running. |
ERR SET_CHIP_MODE busy | Another operation is in progress. |
ERR SET_CHIP_MODE unsupported | The 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