Class MuoviConstants
Constants and static helper methods shared between MuoviSingleProbe (direct Wi-Fi) and MOSAIC.Components.Devices.Muovi (SyncStation multi-probe) blocks.
Inherited Members
Namespace: MOSAIC.Components.Devices.Muovi
Assembly: MOSAIC.dll
Syntax
public static class MuoviConstants
Remarks
All values are derived from the OT Bioelettronica Muovi protocol specification (v2.4 for single-probe, v2.8 for SyncStation). Refer to the manufacturer documentation at https://otbioelettronica.it/en/download/#55-171-wpfd-muovi for full details.
Fields
ChannelsPerProbeRaw
Total raw columns per probe in a data frame: 32 electrode + 4 IMU + 2 accessory channels.
Declaration
public const int ChannelsPerProbeRaw = 38
Field Value
| Type | Description |
|---|---|
| int |
EegConversion
Conversion factor for EEG mode, in microvolts per bit.
Declaration
public const double EegConversion = 0.286
Field Value
| Type | Description |
|---|---|
| double |
ElectrodeChannels
Number of electrode channels per Muovi probe (4 × 8 grid).
Declaration
public const int ElectrodeChannels = 32
Field Value
| Type | Description |
|---|---|
| int |
EmgConversion
Conversion factor for EMG standard gain mode (gain ×8). Multiply the raw short sample by this value to obtain normalised units.
Declaration
public const double EmgConversion = 3.0517578125E-05
Field Value
| Type | Description |
|---|---|
| double |
EmgLowGainConversion
Conversion factor for EMG low-gain mode (gain ×4), in millivolts per bit.
Declaration
public const double EmgLowGainConversion = 0.000572
Field Value
| Type | Description |
|---|---|
| double |
ImuChannels
Number of IMU quaternion channels per probe (W, X, Y, Z).
Declaration
public const int ImuChannels = 4
Field Value
| Type | Description |
|---|---|
| int |
NominalRateEeg
Nominal sample rate in EEG mode, in Hz.
Declaration
public const int NominalRateEeg = 500
Field Value
| Type | Description |
|---|---|
| int |
NominalRateEmg
Nominal sample rate in EMG mode (both standard and low-gain), in Hz.
Declaration
public const int NominalRateEmg = 2000
Field Value
| Type | Description |
|---|---|
| int |
Methods
BuildConfigByte(MuoviSignalMode)
Builds the single-byte configuration value for the direct Wi-Fi protocol (single-probe mode, v2.4).
Declaration
public static byte BuildConfigByte(MuoviSignalMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| MuoviSignalMode | mode | The desired signal acquisition mode. |
Returns
| Type | Description |
|---|---|
| byte | A byte encoding |
Remarks
| Mode | Config byte |
|---|---|
| Emg | 0x09 |
| EmgLowGain | 0x0B |
| Eeg | 0x01 |
ChannelPrefix(MuoviSignalMode)
Returns the human-readable channel label prefix for the specified signal mode.
Declaration
public static string ChannelPrefix(MuoviSignalMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| MuoviSignalMode | mode | The signal acquisition mode. |
Returns
| Type | Description |
|---|---|
| string |
|
ConversionFactor(MuoviSignalMode)
Returns the ADC-to-physical-unit conversion factor for the specified mode.
Declaration
public static double ConversionFactor(MuoviSignalMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| MuoviSignalMode | mode | The signal acquisition mode. |
Returns
| Type | Description |
|---|---|
| double | The conversion multiplier to apply to each raw short sample. |
Crc8(byte[], int)
Computes an 8-bit CRC over data[0..len] (inclusive).
Used by both the SyncStation and single-probe protocols to validate configuration packets.
Declaration
public static byte Crc8(byte[] data, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | The byte array to checksum. |
| int | len | The index of the last byte to include (inclusive).
For example, pass |
Returns
| Type | Description |
|---|---|
| byte | The CRC-8 value as a single byte. |
NominalRate(MuoviSignalMode)
Returns the nominal sample rate for the specified mode.
Declaration
public static int NominalRate(MuoviSignalMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| MuoviSignalMode | mode | The signal acquisition mode. |
Returns
| Type | Description |
|---|---|
| int | 2 000 for EMG modes, 500 for EEG. |