nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

UnicodeDecodeError when trying to connect to piezoconcept FOC using your project #153

Open GesineMueller opened 10 months ago

GesineMueller commented 10 months ago

Hello,

I like to run my new piezo FOC300 with Python. Piezoconcept added a link to your project for guidance when trying to use Python. I have dowloaded and installed your project in a new mamba environment and adapted the script 'Piezoconcept_FOC100.py' to the 300 um. When trying to run this project I always get an error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 (0xb5 is an example). I attached a screenshot.

I tried it on both a Windows 10 and a Mac (M1) system using Pycharm or Spyder with the same result. For me it looks like an encoding/decoding problem, and thus I have tried several other encodings than 'utf-8' such as 'ascii' and 'ISO-8859-1'. Can you forward me to any solution or have an idea what is going wrong here?

Many thanks, Gesine

nplab-piezoFOC