blob: 9714a43f79dc965dcbc6ee46453a32f788339606 (
plain) (
blame)
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
|
function [ack, start_code, data] get_response(display_data)
% GET RESPONSE
% In-depth explanation
% [flag, display_data] = matlabclient(2)
ack = false;
start_code = '';
data = [];
len = -1;
if display_data[0] == 6
ack = true;
else
return
end
display_data[0] = [];
if display_data[0] == 17
start_code = 'DC1';
elseif display_data[0] == 18
start_code = 'DC2';
end
display_data[0] = [];
len = display_data[0];
while len > 0
end
end
|