Changeset 628 in ETALON for CLIO/control/test.py


Ignore:
Timestamp:
Dec 7, 2016, 11:05:28 AM (8 years ago)
Author:
delerue
Message:

CLIO control code updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLIO/control/test.py

    r627 r628  
    11__author__ = 'delerue'
    22
    3 
     3import sys
    44from clio_constants import *
    55from motor_function import *
    66from scope_function import *
    77
    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)
     8read_images_from_scope(2)
    289
    2910
    30 scpi_command("*IDN?")
    31 scpi_command("TIMEbase:SCALE?")
     11#motor_set(1,' velocity', 5000)
     12#motor_wait_for_ready(1)
     13#read_images_from_scope(5)
     14
     15#motor_move_absolute(1,20,-50)
     16#read_images_from_scope(5)
     17
     18#motor_move_absolute(1,20,000)
     19#motor_wait_for_ready(1)
     20#read_images_from_scope(5)
    3221
    3322
    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()
     23#read_images_from_scope(1)
    7124
    7225
    7326#scpi_command("*IDN?")
     27#scpi_command("TIMEbase:SCALE 1e-6")
    7428#scpi_command("TIMEbase:SCALE?")
    7529
    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 TracChangeset for help on using the changeset viewer.