04-08-2011 08:35 AM
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,
09-29-2011 02:08 PM
Would have been nice if you had the VI attached.
thanks.
09-29-2011 02:35 PM
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
12-08-2011 07:25 PM
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