Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ni/protobuf/types/waveform.proto
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,27 @@ message WaveformAttributeValue
}
}

// A digital waveform, which encapsulates digital data as integers, timing information, and extended properties.
message DigitalWaveform
{
// The time of the first sample in y_data.
PrecisionTimestamp t0 = 1;

// The time interval in seconds between data points in the waveform.
double dt = 2;

// The number of signals in each sample of data.
int32 signal_count = 3;

// The data values of the waveform. This data is a flattened array of bytes
// that are ordered such that each signal_count bytes represents a sample.
bytes y_data = 4;

// The names and values of all waveform attributes.
// See the comment at near the top of this file for more details.
map<string, WaveformAttributeValue> attributes = 5;
}

// Scaling information which can be used to convert unscaled data represented by this waveform to scaled data.
message Scale {
oneof mode {
Expand Down