-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprobe_xy_movement.py
More file actions
39 lines (32 loc) · 1.03 KB
/
probe_xy_movement.py
File metadata and controls
39 lines (32 loc) · 1.03 KB
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
from sentio_prober_control.Communication.CommunicatorTcpIp import CommunicatorTcpIp
from sentio_prober_control.Sentio.ProberSentio import *
from sentio_prober_control.Sentio.Enumerations import *
def main():
# Prepare communication
prober = SentioProber(CommunicatorTcpIp.create("127.0.0.1:35555"))
# 1. Load subsite table
subsiteListEastX = {
1: 0,
2: 50,
3: 100,}
subsiteListEastY = {
1: 0,
2: 50,
3: 100,}
subsiteListWestX = {
1: 0,
2: -50,
3: -100,}
subsiteListWestY = {
1: 0,
2: 50,
3: 100,}
for i in range(1, len(subsiteListEastX)+1):
prober.probe.move_probe_xy(ProbeSentio.East, ProbeXYReference.Home, subsiteListEastX[i], subsiteListEastY[i])
prober.probe.move_probe_xy(ProbeSentio.West, ProbeXYReference.Home, subsiteListWestX[i], subsiteListWestY[i])
if __name__ == "__main__":
try:
main()
except Exception as e:
print("\n#### Error ####")
print("{0}".format(e))