pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
288 stars 124 forks source link

Serial: Setting stop bits does nothing #204

Closed circuitfox closed 5 years ago

circuitfox commented 5 years ago

With a serial instrument dev, the following code should set 2 stop bits

from pyvisa import constants
dev.stop_bits = constants.StopBits.two
print(dev.stop_bits)

However, the print statement outputs StopBits.one.

This occurs with pyvisa-1.10.0 and pyvisa-py-0.3.1. It also occurs with pyvisa-1.10.0 and the latest master of pyvisa-py.