Changeset 765 in ETALON for BPM/scope_function.py


Ignore:
Timestamp:
May 24, 2018, 11:16:13 AM (6 years ago)
Author:
moutardier
Message:

reorganisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BPM/scope_function.py

    r762 r765  
    66import urllib
    77from datetime import datetime
    8 #from sparc_constants import *
     8from bpm_constants import *
    99from writeclient import writeclient
    1010
    11 global SCOPE_IP
    12 SCOPE_IP = '10.0.1.112'
     11#global SCOPE_IP
     12#SCOPE_IP = '10.0.1.112'
    1313scope_image_url="http://"+SCOPE_IP+"/crt_print.png"
    1414
     
    3737
    3838
    39 def scpi_command(command):
     39
     40def scpi_query(command):
    4041    reply=writeclient(SCOPE_IP,5025,command+chr(10),1)
    4142    print "SCPI: ",command," => ", reply
     43    return reply
     44
     45def scpi_command(command):
     46    writeclient(SCOPE_IP,5025,command+chr(10),1)
     47    print "SCPI: ",command
Note: See TracChangeset for help on using the changeset viewer.