LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDS640 PIB Hardcopy"Clipped"

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?123.jpg

0 Kudos
Message 1 of 6
(2,615 Views)

Hi 

 

Did you try increasing the byte count for the VISA Read function to see if made a difference?

 

Regards

Arham H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(2,583 Views)

I'm already using 100k, even though my captures are only about 45k. I will try it though, see if it makes a difference. 

0 Kudos
Message 3 of 6
(2,572 Views)

You might also need to increase your VISA timeout.  Are you getting any errors or warnings?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 6
(2,566 Views)

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. wavform.png

0 Kudos
Message 5 of 6
(2,534 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 6
(2,525 Views)