labrad / pylabrad

python interface for labrad
50 stars 31 forks source link

Error when doing gpib_write #368

Closed xiaoyuejin closed 2 years ago

xiaoyuejin commented 4 years ago

The gpib interface works fine with other software (e.g. Matlab tmtool or NI MAX). But in labrad, it shows error ONLY when trying to write:

psg.gpib_query('IDN?') 'Agilent Technologies, E8257D, SG46520117, C.04.94' psg.gpib_write('IDN?') Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\labrad\client.py", line 61, in call return resp.wait() if wait else resp File "C:\Python27\lib\site-packages\labrad\thread.py", line 102, in wait result.raiseException() File "", line 2, in raiseException labrad.types.Error: (0) TypeError('No LabRAD type for: <generator object write at 0x0000000014094900>.',) [payload=None]

Has anyone seen this before?