09-01-2008 01:42 PM
I am using Mathscript to generate a rectangular shape and finding the DFT. The result is been displayed on IMAQ.
The image generation worked fine, but the DFT display is not showing properly, I have to look very closely to see a faint picture. However the same code on MATLAB gives me the display very sharply. Even when I multiplied the final display output i.e by say 30, it shows the image, but not very well, for instance , I could not see the sinc like shape.
I have attached the VI in version 8,5 and 8.0, and also the correct picture I am suppose to get in .jpg.
Thank you
09-01-2008 08:33 PM
Hi, It 's the same problem you posted last time. Vision Image control is to show the images. When you set the type to U8, it means that 0 is black and 255 is white. However, all you calculate is < 10. So the image control shows black.
In your use case, I recommend you to use "Intensity Graph". It can map your value to the whole color bar. The step is:
1. place a "Intensity Graph";
2. wire your output to "Intensity Graph";
3. Right click on Intensity Graph and set Z scale to autoscale.
Thanks.