I had difficulties in initializing the screenshot through GPIB commands. I meddled with basic C programs, despite getting no errors at all I'm getting a blank output with my code. I wondered if I am initializing the commands wrong?
I set the timeout to 20 seconds, use the most basic screenshot command on the device through viprintf, (:MMEM:STOR:SCR 'C:myfile.gif', &buffer), and to retrieve the data I am using (:MMEM:DATA? 'C:myfile.gif'). I thought it was this straightforward. And I just delete the image from the device's memory when I'm done.
I had also tried converting the data type to ASCII, REAL 64, etc, but the outcome was pretty much the same.
You have any opinion why I am unable to retrieve anything (despite getting the screenshot on the device, there's a problem with the transfer only)or know a programming example for C?
Regards
Burak
I set the timeout to 20 seconds, use the most basic screenshot command on the device through viprintf, (:MMEM:STOR:SCR 'C:myfile.gif', &buffer), and to retrieve the data I am using (:MMEM:DATA? 'C:myfile.gif'). I thought it was this straightforward. And I just delete the image from the device's memory when I'm done.
I had also tried converting the data type to ASCII, REAL 64, etc, but the outcome was pretty much the same.
You have any opinion why I am unable to retrieve anything (despite getting the screenshot on the device, there's a problem with the transfer only)or know a programming example for C?
Regards
Burak
I suspect your problem is the case of your filename. The PSA is a little fussy about case sensitivity and you are best to use all capital file names. I have also attached a sample C program, using SICL, that does what you want.
Gordon