04-01-2008 10:10 AM
04-01-2008 10:12 AM
04-01-2008 10:20 AM - edited 04-01-2008 10:24 AM
10-21-2008 02:09 PM
hi there,
do you got solution on .gif?
i am writing a vi also for e7401a emc analyzer thru lv8.2. i got the screen dump data from the instrument but i cant view it.
10-21-2008 02:43 PM
The project was turned over to another (real) programmer before it was finished, but I am sure he found a solution. I'll see if I can get him to post a comment that will help you out.
N
10-21-2008 03:58 PM
cmdrb,
The problem with trying to simply download the data, write it to a gif, and then view it is that there is header information added to the data you fetch. It goes something like this:
#<number of characters in data size><data size><data><line feed>
The number sign at the beginning is an actual number sign. The rest depends on your data.
To get the data, you need to follow a few steps.
1) Read the # off of the data buffer and ignore it
2) Read the number of characters in the data size off of the data buffer
3) Read the data size (using the previously read number)
4) Add one to the data size (to account for the line feed), and use it to read the data off your data buffer.
5) Convert your data to an array of unsigned bytes
6) Write it to a binary file (using native, host order for the byte order) with a .gif extension
I've attached some VIs that I found not long ago when looking into this same problem. I may have modified them some, but I got these from someone else on this or another board.
10-22-2008 07:32 AM
10-22-2008 07:46 AM
hi,
i made a vi to get the data.
pls check the diagram that i made.
i am a little confuse here.
this is the first characters that was in the buffer:
#516410GIF87a
so, i will take off #, then what does 516410GIF87a means
please do help. i need your expertise
10-22-2008 08:30 AM
i got it...disregard the previous inquiry
i have another inquiry:
now, how can i display in the fronpanel.
do you have a .gif read vi?
10-22-2008 09:48 AM
Please try to maintain these questions in one thread.
Continue the discussion here. http://forums.ni.com/ni/board/message?board.id=170&thread.id=363265