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

USB to Serial devices #82

Open
vascotenner opened this issue Jul 11, 2018 · 0 comments
Open

USB to Serial devices #82

vascotenner opened this issue Jul 11, 2018 · 0 comments

Comments

@vascotenner
Copy link

I am using several USB to serial devices. I want to recognize them before connecting (via pyvisa-py). To do that I use the following code:

def find_device_VISA(vid=None, pid=None, vendor=None, serial=None,
                    fmt='ASRL{}::INSTR'):
    '''Find a USB to serial converter and format VISA identifier'''
    tty = find_port.list_devices(vid=vid, pid=pid, vendor=vendor,
                                  serial=serial)[0][3]
    return fmt.format(tty)

Where find_port is in the package: https://github.com/vascotenner/usb-ser-mon/tree/package

Can Lantz provide a more familiar way? Should this be included in lantz? How?

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

No branches or pull requests

1 participant