Class QuattrocentoConstants

Constants, lookup tables, and enumerations for the OT Bioelettronica Quattrocento amplifier.

Inheritance
QuattrocentoConstants
Namespace: MOSAIC.Components.Devices.Quattrocento
Assembly: MOSAIC.dll
Syntax
public static class QuattrocentoConstants
Remarks

The Quattrocento supports up to 384 bioelectrical channels (8 × IN with 16 ch + 4 × MULTIPLE IN with 64 ch), 16 auxiliary BNC inputs, and 8 internal accessory channels. The exact number of active channels depends on the ChannelSetting selection.

All constants are derived from the OT Bioelettronica Configuration Protocol v1.7 and Quattrocento User Manual v2.0 (November 2024).

Fields

AccessoryChannelCount

Number of accessory channels always appended to every sample frame.

Declaration
public const int AccessoryChannelCount = 8
Field Value
Type Description
int
Remarks

Accessory channels: (1) sample counter, (2) trigger, (3) reserved, (4) buffer usage, (5–8) reserved.

AuxChannelCount

Number of auxiliary BNC inputs on the rear panel (always transferred).

Declaration
public const int AuxChannelCount = 16
Field Value
Type Description
int

AuxGainFactor

Auxiliary-channel gain factor: raw int16 → volts.

Declaration
public const double AuxGainFactor = 0.000152587890625
Field Value
Type Description
double
Remarks

Derivation: ADC range 5 V, 16-bit resolution, hardware gain 0.5 V/V. 5 / 65536 / 0.5 ≈ 1.526 × 10⁻⁴ V/LSB.

BioGainFactor

Bio-channel gain factor: raw int16 → millivolts.

Declaration
public const double BioGainFactor = 0.0005086263020833334
Field Value
Type Description
double
Remarks

Derivation: ADC range 5 V, 16-bit resolution (2^16 levels), hardware gain 150 V/V. 5 / 65536 / 150 × 1000 ≈ 5.086 × 10⁻⁴ mV/LSB.

BytesPerInputConfig

Bytes per input configuration block (CONF0 + CONF1 + CONF2).

Declaration
public const int BytesPerInputConfig = 3
Field Value
Type Description
int

ConfigCommandLength

Configuration command length in bytes (39 payload + 1 CRC-8).

Declaration
public const int ConfigCommandLength = 40
Field Value
Type Description
int

InputCount

Number of configurable inputs (IN1–IN8 + MULTIPLE IN1–IN4).

Declaration
public const int InputCount = 12
Field Value
Type Description
int

SampleRateValues

Sampling frequency values (Hz) for each SamplingFrequency selector.

Declaration
public static readonly int[] SampleRateValues
Field Value
Type Description
int[]

TotalChannelCounts

Total channel counts (bio + aux + accessory) for each ChannelSetting value.

Declaration
public static readonly int[] TotalChannelCounts
Field Value
Type Description
int[]
Remarks
IndexActive inputs → total channels
0IN1–2, MULT1 → 96 bio + 16 aux + 8 acc = 120
1IN1–4, MULT1–2 → 192 bio + 16 aux + 8 acc = 216
2IN1–6, MULT1–3 → 288 bio + 16 aux + 8 acc = 312
3IN1–8, MULT1–4 → 384 bio + 16 aux + 8 acc = 408

Methods

BioChannelCount(int)

Returns the number of bioelectrical (EMG/EEG) channels for the given total channel count.

Declaration
public static int BioChannelCount(int totalChannels)
Parameters
Type Name Description
int totalChannels
Returns
Type Description
int

BufferUsageChannelIndex(int)

Returns the device-frame channel index of the buffer usage indicator (accessory ch 4).

Declaration
public static int BufferUsageChannelIndex(int totalChannels)
Parameters
Type Name Description
int totalChannels
Returns
Type Description
int

RampChannelIndex(int)

Returns the device-frame channel index of the sample counter (accessory ch 1).

Declaration
public static int RampChannelIndex(int totalChannels)
Parameters
Type Name Description
int totalChannels
Returns
Type Description
int

SignalChannelCount(int)

Returns the number of signal channels (bio + aux, excluding accessory) for the given total. This is the column count of the output matrix.

Declaration
public static int SignalChannelCount(int totalChannels)
Parameters
Type Name Description
int totalChannels
Returns
Type Description
int

TriggerChannelIndex(int)

Returns the device-frame channel index of the trigger channel (accessory ch 2).

Declaration
public static int TriggerChannelIndex(int totalChannels)
Parameters
Type Name Description
int totalChannels
Returns
Type Description
int

Search documentation

Start typing to search the documentation.