05-05-2006 12:45 PM
05-05-2006 01:27 PM
05-10-2006 10:54 AM
Thanks Dennis, the spy capture of the message was the trick I needed to see how they transferred the .wmf file in Intuilink.
The other detail I found on the discussion board- is to save the file and have it read by anything that can open a .wmf the block header needs to be stripped off the file before saving as a .wmf.
"I need to do a screen capture of an Agilent spectrum analyzer (Model 4408B) and this SA will output an image in JPEG in 488.2 Definite Length Block format. This means the JPEG file will have a header that starts with a "#", is followed by a single digit that gives the length of a following count field, and then the count field, which gives the length of data being sent. For example, to send a block of 1024 bytes, the header would have the form "#41024"."
...so read the second character 4 in this case to find out how many characters to strip off, in this case 6.
05-10-2006 11:18 AM
05-10-2006 12:30 PM
Used VISA write to send the following- these are included in manual, but not very clear on writing to mem rather than SA disk.
:MMEM:DEL "R:IM1.WMF"
:MMEM:CAT? "R:"
:MMEM:STOR:SCR "R:IM1.WMF"
:MMEM:DATA? "R:IM1.WMF"
and then VISA read to get the data - used a byte count larger than required and it worked- did not have any luck wiring the byte count output of the VISA write to the VISA read byte count input.
stripped off the header and saved to a file.
05-10-2006 01:39 PM
Hi jm,
When you used the VISA Read, did it transfer the image to the PC?
Can you provide more detials about this statement: " ...a byte count larger than required... "; how much larger? The byte count should be the size of the image, right?
Thanks,
JLV
05-10-2006 01:56 PM
05-10-2006 03:29 PM
@jm-sc wrote:
did not have any luck wiring the byte count output of the VISA write to the VISA read byte count input.
Thanks Dennis,
I think old age is catching up to me!! 😞 I missed that part of the sentence earlier... 😮 sorry about the confusion. I agree that wiring the output of the VISA Write to input of VISA read would not worked..
My interest with this thread is the fact that we were unsuccessful (~2001) to achieve this. I'm curious in a solution that works. From what I recall, it was possible to control the instrument to get a screen capture, but was not possible to transfer it over GPIB.
It's always good to learn new tricks.
JLV
03-04-2010 11:59 AM
Did you found any solution to transfer screen to PC using GPIB bus in LabView?
Thank you
10-05-2010 08:02 AM
Hello All,
I am also doing same programming of capturing the screen-shot... But facing error at VISA read always. Please if anyone guide me or just post the program. So it will be very helpful to me. I am attaching my code. I am trying so much with gpib read, receive but nothing is working out... So i will be very thankful and glad if anyone can help me with this.
Thanks so much...
Pals