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
7bc3865a
The default branch for this project has been changed. Please update your bookmarks.
Commit
7bc3865a
authored
1 year ago
by
Pierre Korysko
Browse files
Options
Downloads
Patches
Plain Diff
Added Holder Positions for Several Experiments
parent
9a2e025f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MatLab/Robot_GUI_exported.m
+90
-45
90 additions, 45 deletions
MatLab/Robot_GUI_exported.m
with
90 additions
and
45 deletions
MatLab/Robot_GUI_exported.m
+
90
−
45
View file @
7bc3865a
classdef
Robot_GUI_
exported
<
matlab
.
apps
.
AppBase
classdef
Robot_GUI_
Oct23_2
<
matlab
.
apps
.
AppBase
% Properties that correspond to app components
properties
(
Access
=
public
)
...
...
@@ -130,40 +130,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
...
...
@@ -213,7 +213,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
)
...
...
@@ -222,7 +222,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
)
...
...
@@ -230,7 +230,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
)
...
...
@@ -247,7 +247,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")
...
...
@@ -396,7 +396,8 @@ 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
...
...
@@ -492,10 +493,53 @@ 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
;
...
...
@@ -598,7 +642,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
...
...
@@ -1363,7 +1408,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
)
...
...
@@ -1386,4 +1431,4 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
delete
(
app
.
UIFigure
)
end
end
end
\ No newline at end of file
end
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