11-16-2017 03:28 AM
I want to save the screenshot to my computer. Writing the command DISPlay:DATa? PNG, SCReen, COLor through VISA and then reading the returned value, but the returned value is incomplete, who knows how to save the screenshot to the computer? Thank you very much!
Solved! Go to Solution.
11-16-2017 10:49 AM
The most obvious thing to me would be to increase the 100kB read limit you have. Does your return count equal 100000? If so you should increase that.
Also, I have not used that command on an oscilloscope, but are you sure you want a .txt extension and not a .png extension for your file?
11-16-2017 11:07 AM
To me, this isn't a LabVIEW issue so much as an incomplete understanding of that particular command. If you haven't already done so, you'd probably be better served by visiting the Agilent forums as well.
11-17-2017 12:42 PM
You don't give the scope model, so hard to tell if that's a valid SCPI command for your scope. I've seen some that require less and others more parameters all depends on the make and model.
I'd follow gregoryj's suggestions; increase the read size by a few orders of magnitude and label your file as a PNG.
You might also just read the data the scope is sending (replace VISA read to file with VISA read) and see if the data starts with "PNG". If not then you might not be getting the image data at all...and you might need to reconsider that SCPI command syntax.