Jul-07-2018, 08:06 AM
Quote:But, after some research, I found that 3.7 is not listed as a supported version, the latest supported version is 3.6. Going forthe latest and the greatest
Python version without checking compatibility may be a major problem (just had a person complaining in another forum aboutnumpy
misbehaving in 3.7 - turned out he has installed the version for 3.6)
I'm using Python 3.7 with numpy, numba, scipy, flask, pyserial, zmq, aiohttp, websockets, nidaqmx, multiprocessing, threading on Windows 10 in production. The only problem I have with pyserial is a dying port, but this happened also with Python 3.6. The com port I'm using is an integrated Arduino on the board. It should work also with other COM ports.
If you're able to open the port again, then send bytes and not a str.
ser.write(b'SENS:VOLT:RANG 10 \r\n')or
ser.write('SENS:VOLT:RANG 10 \r\n'.encode())
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!