-
Notifications
You must be signed in to change notification settings - Fork 11
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
Channel enable/disable started behaving weird... #6
Comments
Hi,
On 17.01.22 15:49, DrBwts wrote:
It was all working fine before Xmas but now whenever I uses
|j.setchannelenable(True, True)| the channels sometimes turn on & off
but always raises the exception |UnexpectedReplyError(ret)|
It doesnt seem to matter which channel I'm enable/disabling I
sometimes get what I asked for but always get that exception.
Things I've changed, I'm now running from a virtual environment which
has QCodes in it that needs Python 3.8 or above, will this effect the
functionality of your code?
Thanks for your feedback.
Two questions:
- do you only have an issue with that specific command? Or do other
commands also give that exception?
- What version of python do you use?
Kr.Message ID: ***@***.***
|
All the commands return the exception. When I put them in a |
Hi,
On 18.01.22 15:10, DrBwts wrote:
All the commands return the exception. When I put them in a |try: ..
except: ...| they all do their jobs except the change frequency method
that does nothing.
I have just tried on an ubuntu 20.04LTS with python 3.8.10 and python
3.9.5 and both seems to work correctly.
The error you get indicate that the module does not receive a ":ok"
after issuing a command to the device.
Can you try the following debug commands. (You should get the following
answers)
>> j.DEBUG_readregister(0,0)
b':r00=60.\r\n'
>> j.DEBUG_writeregister(0,100)
b':ok\r\n'
>> j.DEBUG_readregister(0,0)
b':r00=60.\r\n'
Note, that changing the frequency does not work is normal as the method
first calls a "self.getmode()" before changing the frequency.
If that command fails, it will not continue, so the frequency is never set.
Kr.
… Message ID: ***@***.***
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was all working fine before Xmas but now whenever I uses
j.setchannelenable(True, True)
the channels sometimes turn on & off but always raises the exceptionUnexpectedReplyError(ret)
It doesnt seem to matter which channel I'm enable/disabling I sometimes get what I asked for but always get that exception.
Things I've changed, I'm now running from a virtual environment which has QCodes in it that needs Python 3.8 or above, will this effect the functionality of your code?
The text was updated successfully, but these errors were encountered: