Changeset 778 in ETALON for BPM/scope_function.py


Ignore:
Timestamp:
Jun 14, 2018, 5:19:55 PM (6 years ago)
Author:
moutardier
Message:

Correction of path in bpm_constante.py + creation fonction acquisition for taking data along a matrice (work) and create new fonction for this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BPM/scope_function.py

    r777 r778  
    8383       
    8484
     85def read_scope_and_write_2D(x ,y ,path):
     86    fichier  = open(path, "a")
     87    fichier.write(str(x)+' '+str(y)+' ')
     88    L = [x,y]
     89    for i in range(4):
     90        scpi_command('CURS1:SOUR CH'+str(i+1)+' \n CURS1:SOUR?')
     91        valeur = scpi_query('CURS1:FUNC UPE \n CURS:RES?')
     92        valeur = suppress_alignea(valeur)
     93        L.append(float(valeur))
     94        fichier.write(valeur+' ')
     95    fichier.write('\n')
     96    fichier.close()
     97    return(L)
    8598
    8699
    87 
Note: See TracChangeset for help on using the changeset viewer.