-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot capture from DS1074Z - multiple messages #4
Comments
What do you mean by "wakes it up". Is your oscilloscope powered on, with the display showing the traces? Mine is always on after I push the power button.
In your case, the oscilloscope has replied with an empty line (the line imediatly after your "python OscScreenGrabLAN.py png 192.168.0.212" command). Instead, the answer should have been the oscilloscope ID, "RIGOL TECHNOLOGIES,DS1104Z,<serial_removed>,00.04.00".
At each run, the program ask for the oscilloscope ID sending the same SCPI command, "_idn?", no matter what type of csv/bmp/png was requested. It is strange that your oscilloscope is sending different answers for the same "_IDN?" command.
|
Hi, Thanks for your reply. |
Hi and thanks for the effort to debug this issue.
Right now, I am trying to add a check for "scope busy" (maybe a debug mode too), then I will reply to you when the new version will be ready. |
Hi, It will create a log file 'OscScreenGrabLAN.py.log'. For the moment, logging features are always on, and it will be appended at each run. I didn't had more time to add a switch for debugging, so the log will grow after many runs, sorry for that. It will be fixed in the future version. You can delete the log file any time you want, after a run has completed. Please let me know if v1.0.0 is working for you. Thank you for your feedback, |
Hi,
and on the second run, I got:
Then if I run it again and again, I mostly got the "LAN must be ON" error, and less often the "IndexError" Here is the log for the two first runs. I admit I don't see a difference between the two except the second one makes one more request...
Don't know if it helps... Vicne |
Oh, and yes, the message "Invalid Input" sometimes (not every time) pops up on the scope with both versions. I tried in "STOP" mode on the scope but I'm still getting it randomly. |
Now wait, your note "This usually happens when a new command is received while the oscilloscope is busy." makes me think of a conflict. |
Thank you for letting me know. There are 2 problems with v1.0.0 of the script. First, is that somehow I managed to push a broken version and tag it as the first release, v1.0.0. My bad here, sorry for that. Second is that different versions of oscilloscope firmware respond different to the same SCPI commands sent by the script. As an example, the firmware version I have on my scope now, 00.04.03 SP1, is accepting commands without '\n' at the end. Other firmware versions seems to require a mandatory '\n' at the end of each command. Also, 00.04.03 SP1 is adding 2 unexpected bytes at the end of the bitmap file. These two bytes does not follow the description of the BMP format, and does not follow the description of the response described in the Rigol's own manual. These 2 extra bytes can also be seen with Wireshark. Long story short, this weekend I will try to fix all the reported issues:
|
Hi,
This tool really seems to fulfill one of my needs : capture without bloated drivers. However, I can't seem to make it work with my DS1074Z.
Surprisingly, each time I start the same command line, I'm getting a different error message, in sequence:
And the cycle restarts if I request again.
It seems the first call cannot see the scope, but wakes it up. The second call sees the scope but it doesn't reply yet. The third call sees the scope, gets a reply (the "Receiving screen capture" step lasts a few seconds) but then crashes.
Any idea ?
The text was updated successfully, but these errors were encountered: