-
Notifications
You must be signed in to change notification settings - Fork 29
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
Python3 controller.info() error #11
Comments
Hi @dorox can you provide more information? On which line does the error occur? |
Hi, see below. There are some other issues, which are solved in @yuriy-kozlov fork.
Here is the quick workaround I've written: info = st.unpack('<I 8s H 3b x 48s 12s HHH', getmsg.datastring)
sn, model, hwtype, fwvermajor, fwverinterim, fwverminor, notes, _, hwver, modstate, numchan = info
fwver = '%d.%d.%d' % (fwvermajor, fwverinterim, fwverminor)
return (sn, model.decode().strip('\x00'), hwtype, fwver, notes.decode().strip('\x00'), hwver, modstate, numchan) |
These issues may be related if the controller is not responding to request/get appropriately. I assume the controller works as expected using thorlab's own software. If you can perhaps get me a sample of |
Exception has occurred: TypeError
ord() expected string of length 1, but int found
I can contribute to solve that as soon as the owner is still working on it
The text was updated successfully, but these errors were encountered: