Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix term_char #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix term_char #26

wants to merge 1 commit into from

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