Interface IDataAssembler
Assembles raw Wulpus acquisitions into publishable output (MathNet.Numerics.LinearAlgebra.Vector<T> or MathNet.Numerics.LinearAlgebra.Matrix<T>).
Namespace: MOSAIC.Components.Devices.Wulpus
Assembly: MOSAIC.dll
Syntax
public interface IDataAssembler
Remarks
Three implementations correspond to the three Wulpus.DataSendingMode values. The block delegates all data assembly logic to the active assembler, keeping the block focused on pipeline orchestration.
Methods
Assemble(Connection)
Performs one acquisition cycle and returns the assembled output, or null if the output is not yet ready (e.g., incomplete frame).
Declaration
object? Assemble(Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| Connection | connection | The active Wulpus connection to read from. |
Returns
| Type | Description |
|---|---|
| object | A MathNet.Numerics.LinearAlgebra.Vector<T> or MathNet.Numerics.LinearAlgebra.Matrix<T>, or null. |
Remarks
Must be called under GIL. Implementations call ReceiveOne(short[]) internally.
CropMetadata(object, Connection)
Removes metadata columns (config index + acquisition counter) from the output.
Declaration
object? CropMetadata(object output, Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| object | output | The raw output from Assemble(Connection). |
| Connection | connection | Connection providing dimensions. |
Returns
| Type | Description |
|---|---|
| object | Output with metadata columns removed. |
Reset(Connection)
Resets internal state (e.g., clears partial frames). Called when streaming starts.
Declaration
void Reset(Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| Connection | connection | Connection providing current |