-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathperftest.proto
130 lines (108 loc) · 3.49 KB
/
perftest.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
//---------------------------------------------------------------------
//---------------------------------------------------------------------
syntax = "proto3";
//---------------------------------------------------------------------
//---------------------------------------------------------------------
import "google/protobuf/any.proto";
//---------------------------------------------------------------------
//---------------------------------------------------------------------
option cc_enable_arenas = true;
//---------------------------------------------------------------------
//---------------------------------------------------------------------
package niPerfTest;
//---------------------------------------------------------------------
// The niPerfTest service definition.
//---------------------------------------------------------------------
service niPerfTestService {
rpc StreamLatencyTest(stream StreamLatencyClient) returns (stream StreamLatencyServer) {};
rpc StreamLatencyTestClient(stream StreamLatencyClient) returns (StreamLatencyServer) {};
rpc StreamLatencyTestServer(StreamLatencyClient) returns (stream StreamLatencyServer) {};
rpc TestWrite(TestWriteParameters) returns (TestWriteResult) {};
rpc TestWriteContinuously(stream TestWriteParameters) returns (stream TestWriteResult) {};
rpc Init(InitParameters) returns (InitResult) {};
rpc ConfigureVertical(ConfigureVerticalRequest) returns (ConfigureVerticalResponse);
rpc ConfigureHorizontalTiming(ConfigureHorizontalTimingRequest) returns (ConfigureHorizontalTimingResponse);
rpc InitiateAcquisition(InitiateAcquisitionRequest) returns (InitiateAcquisitionResponse);
rpc Read(ReadParameters) returns (ReadResult) {};
rpc ReadContinuously(ReadContinuouslyParameters) returns (stream ReadContinuouslyResult) {};
}
message StreamLatencyClient {
uint32 message = 1;
}
message StreamLatencyServer {
uint32 message = 1;
}
message InitParameters {
string command = 1;
int32 id = 2;
}
message InitResult {
int32 status = 1;
}
message ReadParameters {
double timeout = 1;
int32 numSamples = 2;
}
message ReadResult {
int32 status = 1;
repeated double samples = 2;
}
message TestWriteParameters {
repeated double samples = 2;
}
message TestWriteResult {
int32 status = 1;
}
message ReadContinuouslyParameters {
int32 numIterations = 1;
int32 numSamples = 2;
}
message ReadContinuouslyResult {
int32 status = 1;
repeated double wfm = 2;
}
message ConfigureHorizontalTimingRequest {
string vi = 1;
double min_sample_rate = 2;
sint32 min_num_pts = 3;
double ref_position = 4;
sint32 num_records = 5;
bool enforce_realtime = 6;
}
message ConfigureHorizontalTimingResponse {
int32 status = 1;
}
enum VerticalCoupling {
option allow_alias = true;
VERTICAL_COUPLING_UNSPECIFIED = 0;
VERTICAL_COUPLING_NISCOPE_VAL_AC = 0;
VERTICAL_COUPLING_NISCOPE_VAL_DC = 1;
VERTICAL_COUPLING_NISCOPE_VAL_GND = 2;
}
message ConfigureVerticalRequest {
string vi = 1;
string channel_list = 2;
double range = 3;
double offset = 4;
oneof coupling_enum {
VerticalCoupling coupling = 5;
sint32 coupling_raw = 6;
}
double probe_attenuation = 7;
bool enabled = 8;
}
message ConfigureVerticalResponse {
int32 status = 1;
}
message InitiateAcquisitionResponse {
enum StatusCode {
default = 0;
good = 1;
bad = 2;
}
int32 status = 1;
}
message InitiateAcquisitionRequest {
string vi = 1;
InitiateAcquisitionResponse.StatusCode code = 2;
}