07-25-2009 02:21 PM
Currently, our lab use AFM to scan sample surface. The result was saved as .tiff file.
Here are lots of information stored in the .tiff file, such as scan range, tip offset...
But when I try to use IMAQ to load such .tiff file. I just get the image, and some information such as x resolution, y resolution, calibration.
Is there some way to use IMAQ tool to extract all the information I need from .tiff file?
Thanks a lot!
07-26-2009 11:05 PM
I mean all the information I need to is already in .tiff header part.
They have such structure.
[Control]
Signal Gain: 1
X Amplitude: 100 nm
Y Amplitude: 100 nm
Z Gain: 1
[General Info]
Head type: STM
Number of columns: 512
Number of rows: 512
Z Amplitude: 100 nm
[Head Settings]
Preamp Gain: 1000 mV/nA
X Calibration: 1 Å/V
Z Calibration: 1 Å/V
[Header end]
Also there is a PreHeader consists of three lines:They looks like this :
WSxM file copyright Nanotec Electronica
SxM Image file
Image header size: 417.
So how to use LabVIEW to get such information?
Can IMAQ do such a job? Is there certain vi in IMAQ can show these information?
Please give me some help or suggestions.
Thank you very very much!
07-27-2009 12:06 AM
07-27-2009 08:48 AM
I tried to use read text file vi. But what I get is some meaningless characters. Just like this.
II* Ô ô ¥ÂZEÃÒZE ª}gDó» ‘N‘>test3 Mesuared by JSPM-5200 ? Ù Ù :/
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ ÿÿÿÿ «ÊDÚ¢I@ {.A ? @ ºB @ PCG PCG €? €?jè@ €? øâE SPM ý?F ÿÿÿÿ ÿ ÿÿUÿþ þ þ þ ðª
"$&(*,.02468:<>@BDFHJLNPRTVXZ\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª¬®°²´¶¸º¼¾ÀÂÄÆÈÊÌÎÐÒÔÖØÚÜÞàâäæèêìîðòôöøúüþ )19AJRZbjs{ƒ‹”œ¤¬´½ÅÍÕÞæîöÿ )19AJRZbjs{ƒ‹”œ¤¬´½ÅÍÕÞæîöÿ ªÿ ÿU ÿ ÿÿ ªÿÿ þþ þ þ` þðªŒþþ
"$&(*,.02468:<>@BDFHJLNPRTVXZ\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª¬®°²´¶¸º¼¾ÀÂÄÆÈÊÌÎÐÒÔÖØÚÜÞàâäæèêìîðòôöøúüþ )19AJRZbjs{ƒ‹”œ¤¬´½ÅÍÕÞæîöÿ ª ÿ ÿª ÿ ÿÿUªÿ þªPþ þþþðª þþ
Why is that ?
07-27-2009 09:11 AM
Much of the data may be saved in a binary format as opposed to a readable text format. (Though you can see some of the data is saved as strings.) You can convert the ASCII characters to bytes using the typecast function.
I don't know the format of the header. You will have to look that up. But for example, if bytes 10,11 represent something like a picture dimension in U16, then you should be able to extract them and typecast them to a U16 and you will have the numeric value you are looking for.
Depending on the the format of the data, it may be better to read the file using Read Binary File to get an array of bytes. The only question is how many to read before the header ends and the raw data begins.
07-27-2009 11:05 AM
I tried to use tiff tag to anaylsis the .tiff image. The result is like this
When I tried to convert the ASCII characters to bytes using the typecast function. What I get is an array of data.
I do not know what does them mean.
It seems that one software called WSxM can show the inforamtion saved with tiff file.
But how to extract them from tiff by using labview? I am still confused.
Ravens, thanks for our reply.