Table of Contents

Method GetTimestampedPayloadSingle

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

GetTimestampedPayloadSingle()

Returns the message payload as a single-precision floating point number and gets the message timestamp.

public Timestamped<float> GetTimestampedPayloadSingle()

Returns

Timestamped<float>

A timestamped float representing the message payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.

GetTimestampedPayloadSingle(int)

Returns the element at the specified index of the single-precision floating point array payload and gets the message timestamp.

public Timestamped<float> GetTimestampedPayloadSingle(int index)

Parameters

index int

The zero-based index of the array element to get.

Returns

Timestamped<float>

A timestamped float representing the element at the specified index of the array payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.