LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tektronix Scope Hardcopy (over GPIB) Distorted Image - Solved

Hello All,

 

To be fair this has been covered before but the only solution I found was buried deep in a slightly different post here (maybe my search terms were just off). 

 

Anyway, I was have a hard time getting the "hardcopy" image from my older Tektronix TDS784D scope (basically I wanted a current screen-shot). I was writing the data returned from the scope to a .bmp file and then reading it back into a Picture control. I was getting a partially distorted image!

 

The key was to use the "VISA Read to File" VI - which I didn't know about - and it was super easy and best of all works!

 

I will attempt to attach a snippet of the solution.

 

Cheers,

 

- Jolt
Message 1 of 4
(3,276 Views)

Would have been nice if you had the VI attached. 

 

thanks. 

0 Kudos
Message 2 of 4
(3,173 Views)

They did, that image is a 'snippet' which can be dragged right onto a block diagram in LabVIEW 2010 and later.

 

It's a pretty basic diagram to reconstruct if you don't have the snippet capability.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 3 of 4
(3,168 Views)

Thankyou Jolt.  It took me a few minutes to figure out how to use a snippet, but once I downloaded it and dragged it to my block diagram it came right through.

 

For a filename, make sure it meets old DOS naming requirements 8 letters.bmp.  Give the full path where it is to be saved on your pc.

 

Also I was getting timeouts on reading the file until I put it in debug mode.  Then it didn't throw any errors.  I didn't fix it as it works fine for my needs.

 

Thanks for posting this so I didn't have to dig like you did.

 

-D

LV2010

0 Kudos
Message 4 of 4
(3,119 Views)