Skip to content

Conversation

@coburnw
Copy link

@coburnw coburnw commented Feb 27, 2018

The older HP equipment seems to need a \n term_char.
With my instruments, this pull fixes term_char handling for both python 2.7 and python 3.6.

@coburnw coburnw changed the title fix termchar in both python2.7 and python3.6 fix term_char Feb 27, 2018
@mdavidsaver
Copy link

I've encountered this issue as well with an Keysight/Agilent/HP 3458A DMM in combination with an Keysight/Agilent/... E5810A gpib to ethernet bridge. With this change the following works for me:

from vxi11 import Instrument
I=Instrument('192.168.1.2', 'gpib0,22', term_char='\n')
print(I.ask('ID?'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants