I only able to store the image file in Scope , But i wanted the file to be stored in my PC through LabVIEW using GPIB interface. Please Help me out for this problem.
I only able to store the image file in Scope , But i wanted the file to be stored in my PC through LabVIEW using GPIB interface. Please Help me out for this problem.
I don't know how to do this through LabView, but the SCPI Command to do this is:
:DISK:SAVE:IMAGe "<file_name>" [,<format> [,{SCReen | GRATicule} [,{ON | 1} | {OFF | 0} [,{NORMal | INVert} [,{ON | 1} | {OFF | 0}]]]]].
The Programmers Guide is available here:http://www.keysight.com/upload/cmc_upload/All/Infiniium_prog_guide.pdf
This command is on Page 440.
Al
OK, there are a series of examples in the Programming Guide, in a variety of languages. They all contain a few lines to save the screen contents to a file on the controlling PC.
Here is the 'C' version:
/* Read screen image. */
num_values = do_query_ieeeblock(":DISPlay:DATA? PNG");
/* Write screen image bytes to file. */
fp = fopen ("c:\\scope\\data\\screen.png", "wb");
num_values = fwrite(ieeeblock_data, sizeof(unsigned char), num_values, fp);
fclose (fp);
printf("c:\\scope\\data\\screen.bmp.\n");
Here is the Python version:
# Download the screen image.
# --------------------------------------------------------
sDisplay = do_query_ieee_block(":DISPlay:DATA? PNG")
# Save display data values to file.
f = open("screen_image.png", "wb")
f.write(sDisplay)
f.close()
print "Screen image written to screen_image.png."
Al
Both of the examples use PNG format, so I don't understand your question.
The command "DISPlay:DATA? PNG" says 'Send me the display information in PNG format'
Both examples put the received data into an array, then dump the data to a file with a .png extension.
Al
OK, there are a series of examples in the Programming Guide, in a variety of languages. They all contain a few lines to save the screen contents to a file on the controlling PC.
Here is the 'C' version:
/* Read screen image. */
num_values = do_query_ieeeblock(":DISPlay:DATA? PNG");
/* Write screen image bytes to file. */
fp = fopen ("c:\\scope\\data\\screen.png", "wb");
num_values = fwrite(ieeeblock_data, sizeof(unsigned char), num_values, fp);
fclose (fp);
printf("c:\\scope\\data\\screen.bmp.\n");
Here is the Python version:
# Download the screen image.
# --------------------------------------------------------
sDisplay = do_query_ieee_block(":DISPlay:DATA? PNG")
# Save display data values to file.
f = open("screen_image.png", "wb")
f.write(sDisplay)
f.close()
print "Screen image written to screen_image.png."
Al