10-11-2008 04:16 PM
hallo:
in my project, there is a Tektronix ocsilloscope connect to labtop via GPIB cable, i try write a program which use Hardcopy command to get bmp screen shoot picture and indicate it in program's interface, the VISA-read can read back some signal, but it seems like strings, how to cope with such data and return it to a picturn which can present in the interface and save in the disc as bmp picture?
anyone have experience of such issure or some advices? deeply appreciate of that.
10-12-2008 04:36 AM
10-12-2008 03:32 PM
10-12-2008 03:46 PM
10-12-2008 03:52 PM
Yes, you get a string when you read from an instrument. All that I am saying is that if you are transferring a .bmp file for example, all that you might have to do is take that entire string and save it to a file with a .bmp extension. If you look at the string in LabVIEW, it is probably meaningless. It's just the encoding of the file displayed as ASCII. Try it and see if you can then open the file in a graphics viewer.
There are numerous examples for writing to a file. Try Write to Binary File with your string as an input.
10-13-2008 02:45 AM
hallo dennis:
thanks, and this is my test program picture, but it seems that after running, no picture shows in this .bmp file, do you know why?
10-13-2008 08:02 AM
You could have starting or ending information in the text string. You will need to strip this before sending to the file. Consult your oscilloscope interface manual for details.
Another option is to use a binary editor to look at the file. Look up the BMP filespec so you know what to look for. Google "bmp file structure" for lots of information on BMP files. If you don't have a binary editor, you can pick up an open source one fairly easily.
It is probably easier to look at the text string with the codes display turned on so you can see all the non-printing characters. You already have it displayed.
Let us know if you need more help.
10-13-2008 09:10 AM
10-14-2008 03:12 AM
hi guys.
my problem is fixe, thanks a lot for your kind help.
01-25-2010 08:56 AM