04-15-2013 02:37 PM
I'm using GPIB to save the hardcopy image to a computer. The read/write is simple enough. Send the hardcopy command:
HARDCOPY PORT GPI; HARDCOPY START
Then I'm using a VISA Read to save the image to a text file. The issue I'm having is that my images are "cut" half way down. Any ideas?
04-16-2013 07:39 PM
Hi
Did you try increasing the byte count for the VISA Read function to see if made a difference?
Regards
04-17-2013 04:45 AM
I'm already using 100k, even though my captures are only about 45k. I will try it though, see if it makes a difference.
04-17-2013 08:13 AM
You might also need to increase your VISA timeout. Are you getting any errors or warnings?
06-11-2013 05:29 AM - edited 06-11-2013 05:29 AM
With my VISA time-out increased to 5000ms, it's still occurring. Could this be related to how I'm saving off the file? I'm reading the data to a text file, then saving it to a .BMP on the local machine. However, an image would be binary, right?
See my VI Attached.
06-11-2013 06:39 AM
Ok. I see a couple of problems there.
1. Do the hardcopy as a PNG. It is a much smaller file than the BMP and will still look good. Less data over the bus is almost always better.
2. Use the VISA Read to File function. It is a single function that will read that data from the bus and save it direcly to a file. Your other alternative is to right-click on your Write to Text File and uncheck "Convert EOL". It is likely the convertion of the EOL that is messing up your image.