-
Notifications
You must be signed in to change notification settings - Fork 80
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
the picoscope does not work #162
Comments
The script above is trying to connect to a picoscope twice. The first time with the serial number you provide. The second time a few lines down. That example is better used by running things line by line. Interactively |
When commenting out the lines of the second connection, the dummy still falls out with an error:
|
The most interesting thing is if you use functions like ps.flashLed (10)
then there is an error that the picoscope is not available.
works correctly and returns:
|
Are you running this in a notebook. Or Spyder? Could you start fresh ensure all other python kernels are closed |
Yes, the launch in jupiter python is true. I have restarted many times. It produces exactly such errors. Here is another example similar to the one discussed earlier, where there is an error that the picoscope was not detected.
Error tracing
|
can you please reformat your error messages with code blocks |
So you have the power supply connected? Can you make sure you are using a high quality USb cable. Ours is but a thin wrapper on their stuff |
Good day. The original program from the picoscope and the picoscope itself works. The picopitone library is installed and some of the things from this library work. I gave code examples a little higher that display information about the picoscope and blink the LED a certain number of times. I still assume that the program cannot communicate with the picoscope because it is necessary to indicate its number somewhere, the methods given in the examples for some reason do not work. Perhaps this is due to the features of python 3.7. |
Ah, well constructive changes to the library are welcome. Would you like to make the pull request? |
No . Unfortunately, I am only new to python. |
You found the perfect issue to submit a fix for! You can follow the getting started instructions here. Otherwise, it might take a while for us to get to it. Since we don't have the 3000a to test it on. As to why it works in C and not with us, can you provide us with the C code that does work for work? Our python function calls map directly to the C functions |
Thanks for the link. Of course, I would love to plmog in fixing the code, but as I already told you, my knowledge in python is not enough for this. I'm still trying to understand the reason why the source code does not want to connect to the picoscope. |
You've identified an incorrect variable name! That is a great first contribution. Whether you choose it is worth your time contributing is up to you. Yes, picosdk-python-wrappers are the official ones provided by picotech. Our library predates those. Anyway, I created the isolated issue: #163 for somebody to fix. |
Does not open picoscope
Good day . I'm trying to connect with an oscilloscope, for example, with this example:
And getting an error:
Using SERIAL_NUM = "AT635 / 230\x00"
It produces the same error as described above.
When you try to set data in a picoscope without using a serial number, an error such as a picoscope is not detected. This has already been considered in the comments in this thread.
What could be the problem ?
The text was updated successfully, but these errors were encountered: