Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino4D_Robot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CLEAR
Arduino4D_Robot
Commits
2cd20a60
Commit
2cd20a60
authored
1 year ago
by
Kyrre Ness Sjobaek
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into doublefilter;
update with changes in MATLAB code
parents
c6cabcb0
7bc3865a
No related branches found
No related tags found
1 merge request
!20
Doublefilter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MatLab/Robot_GUI_exported.m
+91
-44
91 additions, 44 deletions
MatLab/Robot_GUI_exported.m
with
91 additions
and
44 deletions
MatLab/Robot_GUI_exported.m
+
91
−
44
View file @
2cd20a60
classdef
Robot_GUI_
exported
<
matlab
.
apps
.
AppBase
classdef
Robot_GUI_
Oct23_2
<
matlab
.
apps
.
AppBase
% Properties that correspond to app components
properties
(
Access
=
public
)
...
...
@@ -101,40 +101,40 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
StepperIsMoving
=
NaN
;
Pos_holders
=
[
2
25
2
5
0
22
25
;
...
2
25
1825
22
25
;
...
717
2
5
0
22
25
;
...
717
1825
22
25
;
...
11
9
8
2
5
0
22
25
;
...
11
9
8
1825
22
25
;
...
16
79
2
5
0
22
25
;
...
16
79
1825
22
25
;
...
21
6
0
2
5
0
22
25
;
...
21
6
0
1825
22
25
;
...
26
41
250
2225
;
...
26
41
1825
22
25
;
...
31
22
2
5
0
22
25
;
...
31
22
1825
22
25
;
...
3
603
2
5
0
22
25
;
...
3
603
1825
22
25
;
...
40
84
250
2225
;
...
40
84
1825
22
25
;
...
45
6
5
2
5
0
22
25
;
...
45
6
5
1825
22
25
;
...
5046
2
5
0
22
25
;
...
50
46
1825
22
25
;
...
5
527
2
5
0
22
25
;
...
5
527
1825
22
25
;
...
6008
2
5
0
22
25
;
...
6008
1825
22
25
;
...
64
89
2
5
0
22
25
;
...
64
89
1825
22
25
;
...
69
7
0
2
5
0
22
25
;
...
69
7
0
1825
22
25
;
...
7451
2
5
0
22
25
;
...
7451
1825
22
25
;
...
7932
2
5
0
22
25
;
...
8413
1825
22
25
];
Pos_holders
=
[
2
10
2
0
0
22
00
;
...
2
10
1825
22
00
;
...
695
2
0
0
22
00
;
...
695
1825
22
00
;
...
118
0
2
0
0
22
00
;
...
118
0
1825
22
00
;
...
16
60
2
0
0
22
00
;
...
16
60
1825
22
00
;
...
21
4
0
2
0
0
22
00
;
...
21
4
0
1825
22
00
;
...
26
20
200
2200
;
...
26
20
1825
22
00
;
...
31
00
2
0
0
22
00
;
...
31
00
1825
22
00
;
...
3
575
2
0
0
22
00
;
...
3
575
1825
22
00
;
...
40
50
200
2200
;
...
40
50
1825
22
00
;
...
45
3
5
2
0
0
22
00
;
...
45
3
5
1825
22
00
;
...
4900
2
0
0
22
00
;
...
50
10
1825
22
00
;
...
5
495
2
0
0
22
00
;
...
5
495
1825
22
00
;
...
5970
2
0
0
22
00
;
...
5970
1825
22
00
;
...
64
45
2
0
0
22
00
;
...
64
45
1825
22
00
;
...
69
2
0
2
0
0
22
00
;
...
69
2
0
1825
22
00
;
...
7451
2
0
0
22
00
;
...
7451
1825
22
00
;
...
7932
2
0
0
22
00
;
...
8413
1825
22
00
];
%List of all holder buttons,
% not possible to generate programattically in AppDesigner
...
...
@@ -185,7 +185,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
%Plotting the position
axes
(
app
.
UIAxes_6
);
%
axes(app.UIAxes_6);
scatter
(
app
.
UIAxes_6
,
Pos_X
,
Pos_Z
,
100
,
"red"
,
'filled'
);
rectangle
(
app
.
UIAxes_6
,
'Position'
,
[
0
1400
8000
1600
],
'FaceColor'
,[
1
,
.
8
,
.
8
,
0.5
],
'EdgeColor'
,
'r'
,
'LineWidth'
,
1
)
...
...
@@ -194,7 +194,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
rectangle
(
app
.
UIAxes_6
,
'Position'
,
[
0
2000
8000
1000
],
'FaceColor'
,[
0
,
1
,
1
,
0.5
],
'EdgeColor'
,
'blue'
,
'LineWidth'
,
1
)
axes
(
app
.
UIAxes_5
);
%
axes(app.UIAxes_5);
scatter
(
app
.
UIAxes_5
,
Pos_X
,
Pos_Y
,
100
,
"red"
,
'filled'
);
rectangle
(
app
.
UIAxes_5
,
'Position'
,
[
0
0
8000
2000
],
'FaceColor'
,[
0
,
1
,
1
,
0.5
],
'EdgeColor'
,
'blue'
,
'LineWidth'
,
1
)
...
...
@@ -202,7 +202,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
rectangle
(
app
.
UIAxes_5
,
'Position'
,
[
0
5280
8000
2720
],
'FaceColor'
,[
0
,
1
,
1
,
0.5
],
'EdgeColor'
,
'blue'
,
'LineWidth'
,
1
)
text
(
app
.
UIAxes_5
,
3000
,
6750
,
'Beam tank'
)
axes
(
app
.
UIAxes_4
);
%
axes(app.UIAxes_4);
scatter
(
app
.
UIAxes_4
,
Pos_Y
,
Pos_Z
,
100
,
"red"
,
'filled'
);
rectangle
(
app
.
UIAxes_4
,
'Position'
,
[
0
2000
2000
1000
],
'FaceColor'
,[
0
,
1
,
1
,
0.5
],
'EdgeColor'
,
'blue'
,
'LineWidth'
,
1
)
...
...
@@ -219,7 +219,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
%
% app.UIAxes_3.View = [90 45];
% app.UIAxes_3.Projection = 'perspective';
%
% H=[0 8000 0 8000 0 8000 0 8000; 0 0 2000 2000 0 0 2000 2000; 3000 3000 3000 3000 1500 1500 1500 1500]; %Vertices of the cube
% S=[1 2 4 3; 1 2 6 5; 1 3 7 5; 3 4 8 7; 2 4 8 6; 5 6 8 7]; %Surfaces of the cube
% hold(app.UIAxes_3,"on")
...
...
@@ -370,7 +370,9 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
app
.
conn
.
stepperGo
(
'X'
,
Pos_h_X
);
app
.
conn
.
stepperGo
(
'Y'
,
Pos_h_Y
);
app
.
conn
.
stepperGo
(
'Z'
,
Pos_h_Z
);
app
.
conn
.
grabberClose
;
%app.conn.grabberClose;
app
.
conn
.
grabberGo
(
80
);
app
.
conn
.
updateGrabberStatus
...
...
@@ -466,10 +468,54 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
function
PutHolderInBeamPushed
(
app
,
event
)
app
.
conn
.
updateGrabberStatus
% FOR Screen dosimetry (film center)
app
.
conn
.
stepperGo
(
'Z'
,
50
);
app
.
conn
.
stepperGo
(
'Y'
,
7210
);
app
.
conn
.
stepperGo
(
'X'
,
app
.
XpositioninbeammmEditField
.
Value
*
7803
/
460
+
95
*
7803
/
460
);
app
.
conn
.
stepperGo
(
'Z'
,
2340
);
app
.
conn
.
stepperGo
(
'X'
,
app
.
XpositioninbeammmEditField
.
Value
*
20
+
1611
);
app
.
conn
.
stepperGo
(
'Z'
,
2240
);
% FOR CHUV Plasmids and ZFE (low)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2225);
% FOR UVic Drosophilia (low)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2425);
%
% FOR CHUV Chemistry (center)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2300);
% FOR Hannah Plasmids (1.5 mL tubes)
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2350);
% For Scatterers
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7140);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2380);
% For Scatterers 2
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2240);
% For Scatterers 3
% app.conn.stepperGo('Z',50);
% app.conn.stepperGo('Y',7210);
% app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*20+1611);
% app.conn.stepperGo('Z',2340);
%Disable itself, enable bringback button
app
.
BringbackholderButton
.
Enable
=
true
;
...
...
@@ -572,7 +618,8 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
app
.
conn
.
stepperGo
(
'Y'
,
app
.
Pos_hold_Y
);
app
.
conn
.
stepperGo
(
'Z'
,
app
.
Pos_hold_Z
);
app
.
conn
.
grabberClose
();
%app.conn.grabberClose();
app
.
conn
.
grabberGo
(
80
);
app
.
conn
.
updateGrabberStatus
();
end
...
...
@@ -1169,7 +1216,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
methods
(
Access
=
public
)
% Construct app
function
app
=
Robot_GUI_
exported
function
app
=
Robot_GUI_
Oct23_2
% Create UIFigure and components
createComponents
(
app
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment