1 | __author__ = 'delerue' |
---|
2 | |
---|
3 | |
---|
4 | from clio_constants import * |
---|
5 | from motor_function import * |
---|
6 | from scope_function import * |
---|
7 | |
---|
8 | |
---|
9 | controller_hello() |
---|
10 | |
---|
11 | motor_reset(1) |
---|
12 | motor_enable(1) |
---|
13 | motor_move_absolute(1,20,000) |
---|
14 | motor_wait_for_ready(1) |
---|
15 | read_images_from_scope(5) |
---|
16 | |
---|
17 | motor_move_absolute(1,20,-50) |
---|
18 | motor_wait_for_ready(1) |
---|
19 | read_images_from_scope(5) |
---|
20 | |
---|
21 | motor_move_absolute(1,20,000) |
---|
22 | motor_wait_for_ready(1) |
---|
23 | read_images_from_scope(5) |
---|
24 | |
---|
25 | motor_disable(1) |
---|
26 | |
---|
27 | read_images_from_scope(5) |
---|
28 | |
---|
29 | |
---|
30 | scpi_command("*IDN?") |
---|
31 | scpi_command("TIMEbase:SCALE?") |
---|
32 | |
---|
33 | |
---|
34 | #motor_disable(1) |
---|
35 | #tranlation_in_mm(-1) |
---|
36 | |
---|
37 | #motor_reset(1) |
---|
38 | #motor_enable(1) |
---|
39 | #motor_move_relative(1,2000,50000) |
---|
40 | #motor_wait_for_ready(1) |
---|
41 | #motor_move_absolute(1,20,000) |
---|
42 | #motor_wait_for_ready(1) |
---|
43 | #motor_move_absolute(1,20,500) |
---|
44 | #motor_wait_for_ready(1) |
---|
45 | #motor_disable(1) |
---|
46 | |
---|
47 | #get_out_of_limit() |
---|
48 | |
---|
49 | get_camera_images(show=1) |
---|
50 | |
---|
51 | #table_to_mm_from_back(1) |
---|
52 | #grating_big_p05() |
---|
53 | #time.sleep(20) |
---|
54 | #grating_big_blank() |
---|
55 | #time.sleep(20) |
---|
56 | #grating_small_p1() |
---|
57 | #time.sleep(20) |
---|
58 | #grating_small_blank() |
---|
59 | #time.sleep(20) |
---|
60 | #grating_small_p1() |
---|
61 | |
---|
62 | |
---|
63 | #read_image("/Users/delerue/Downloads/test.png") |
---|
64 | #read_images_from_scope(3) |
---|
65 | |
---|
66 | |
---|
67 | #read_encoder() |
---|
68 | #init_encoder_ref_pos() |
---|
69 | #check_encoder_constistency() |
---|
70 | #monitor_encoder_consistency() |
---|
71 | |
---|
72 | |
---|
73 | #scpi_command("*IDN?") |
---|
74 | #scpi_command("TIMEbase:SCALE?") |
---|
75 | |
---|
76 | #writeclient('192.168.0.21',80,'GET /'+chr(10),1) |
---|
77 | #writeclient('192.168.0.22',5025,'*IDN?'+chr(10),1) |
---|
78 | #writeclient(SCOPE_IP,5025,'*IDN?'+chr(10),1) |
---|