pnax.py 249 Bytes
Newer Older
Lucas Laplanche's avatar
Lucas Laplanche committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import pyvisa




def check_ressources():
    rm = pyvisa.ResourceManager()
    ressources = rm.list_resources()
    print(ressources)

    for r in ressources:
        my_instrument = rm.open_resource(r)
        print(my_instrument.query('*IDN?'))