hephy-dd / diode-measurement

IV/CV measurements for silicon sensors.
GNU General Public License v3.0
0 stars 2 forks source link

unclear delay between "start" button pressed and IV ramp starts #14

Closed thomasbergauer closed 1 year ago

thomasbergauer commented 2 years ago

the title says it all. The feeling is also that it lasts much longer on the first start after the software was opened. But even later it takes several seconds until something happens after the start button was pressed.

If it is intentional then it needs to be written somewhere how long this delay lasts. If it is not intentional then we need to investigate why it takes so long.

arnobaer commented 2 years ago

It turned out that creating a pyVISA resource using GPIB bus can take up to several seconds.

This effect can be reproduced using a simple script like following:

import logging
import pyvisa

logging.basicConfig(level=logging.DEBUG)  # enable pyVISA debug messages

rm = pyvisa.ResourceManager()  # using NI VISA driver

with rm.open_resource('GPIB0::11::INSTR') as instr:  # might take several seconds
    instr.query('*IDN?')
thomasbergauer commented 2 years ago

So is this an issue with the NI-VISA/GPIB driver? Any parameter to be optimized there?

thomasbergauer commented 1 year ago

This is an issue with the GPIB-Ether interface, as no delay is observed when the device is connected via USB (and Visa configured accordingly). Thus I close here.