Config Files Reference
This reference describes the configuration files used by WSS applications that rely on a Config/ directory.
In the Python CLI application, the default config directory contains:
stimConfig.jsonstimParams.jsonmodelConfig.json
Together, these files define the hardware/core setup, per-channel stimulation behavior, and optional model-layer behavior.
stimConfig.json
This is the core configuration file. It controls how many WSS units the application expects, which firmware behavior to target, and whether custom amplitude conversion curves should be used.
Sections:
maxWSS- The maximum number of WSS devices the application should manage.
- This also determines how many total channels exist in the running system.
firmware- The firmware version string used by the core when it creates the WSS version handler.
- See Firmware Compatibility Matrix for the currently documented supported versions and version-gated features.
useConfigAmpCurves- Controls whether amplitude conversion should come from this file or from the built-in/default mapping.
ampCurves- Per-WSS amplitude curve parameters.
- Each entry defines the piecewise mapping from amplitude in mA to the device-side drive value.
- The fields are:
LowThresholdLowConstExpPowerLinearOffsetLinearSlope
stimParams.json
This is the stimulation-parameters configuration file. It is mainly used by the calibration/params layer to define how each channel should behave.
Sections:
stim- Root stimulation-parameter section.
stim.ch- Per-channel parameter table.
- Each numbered child such as
1,2, or3defines one stimulation channel.
- Per-channel fields
ampMode- Whether the channel is controlled through pulse width (
PW) or pulse amplitude (PA).
- Whether the channel is controlled through pulse width (
minPWandmaxPW- Pulse-width limits used when the channel is operating in
PWmode.
- Pulse-width limits used when the channel is operating in
minPAandmaxPA- Amplitude limits used when the channel is operating in
PAmode.
- Amplitude limits used when the channel is operating in
defaultPA- Default amplitude used when pulse width is the actively controlled quantity.
defaultPW- Default pulse width used when pulse amplitude is the actively controlled quantity.
IPI- Inter-pulse interval for the channel.
In general, this file defines how normalized or higher-level stimulation requests get translated into channel-specific stimulation values.
modelConfig.json
This is the model-layer configuration file. It defines the controller mode and the constants used by the model layer before requests are passed down into the stimulation-parameters layer.
Sections:
calib- Contains the active controller mode.
calib.mode- The model/controller mode to use.
- Current examples are
PandPD.
constants- Controller constants used by the selected model mode.
- Current fields include:
PModeProportionalPModeOffsetPDModeProportionalPDModeDerivativePDModeOffset
In general, this file defines how application input is transformed by the model layer before it becomes stimulation output.
Navigation: