forked from Modi1987/KST-Kuka-Sunrise-Toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial_plotNetHealth.m
More file actions
32 lines (21 loc) · 820 Bytes
/
Tutorial_plotNetHealth.m
File metadata and controls
32 lines (21 loc) · 820 Bytes
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
%% Example
% used to test the timing characteristic of the connection between IIWA and PC
% First start the server on the KUKA iiwa controller
% Then run this script using Matlab
% The script plots the timing data
% Copyright: Mohammad SAFEEA, 15th of June 2017
close all,clear all;clc;
ip='172.31.1.147'; % The IP of the controller
% start a connection with the server
global t_Kuka;
t_Kuka=net_establishConnection( ip );
if ~exist('t_Kuka','var') || isempty(t_Kuka) || strcmp(t_Kuka.Status,'closed')
disp('Connection could not be establised, script aborted');
return;
else
disp('Connection established')
end
pause(1);
disp('This will take up a minute or so to finish, please wait')
[time_stamps,time_delay]=net_updateDelay(t_Kuka);
net_turnOffServer( t_Kuka );