source: ETALON/CLIO/control/test.py @ 627

Last change on this file since 627 was 627, checked in by delerue, 8 years ago

Added CLIO controls

File size: 1.4 KB
Line 
1__author__ = 'delerue'
2
3
4from clio_constants import *
5from motor_function import *
6from scope_function import *
7
8
9controller_hello()
10
11motor_reset(1)
12motor_enable(1)
13motor_move_absolute(1,20,000)
14motor_wait_for_ready(1)
15read_images_from_scope(5)
16
17motor_move_absolute(1,20,-50)
18motor_wait_for_ready(1)
19read_images_from_scope(5)
20
21motor_move_absolute(1,20,000)
22motor_wait_for_ready(1)
23read_images_from_scope(5)
24
25motor_disable(1)
26
27read_images_from_scope(5)
28
29
30scpi_command("*IDN?")
31scpi_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
49get_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)
Note: See TracBrowser for help on using the repository browser.