08-04-2010 08:03 AM
Hi,
I'm trying to modify Particle Analysis Orientation example to be able to work with .avi file. When the vi runs, the avi file plays but the particle analysis doesn't, so I don't know what is the error...
I'll appreciate any input.
The vi is attached.
Thank you,
08-04-2010 08:51 AM
Can you also post a screen shot of your vi?
08-04-2010 09:09 AM
Hi Muks,
I'll post a screen shot of the vi running in about an hour when I'll get to the lab.
Here is the avi that I used (so you can run it if you have vision package).
08-04-2010 09:17 AM
I am leaving for the day. I will post the solution tomorrow.
08-04-2010 11:08 AM
Thanks Muks.
Here is a screen shot of the block diagram.
08-05-2010 12:11 AM
You have not connected the imag dst to imaq create in the threshold vi. Connect one. Right click the output image choose palate and choose binary image display.
08-05-2010 12:37 AM
Hey remember to put the imaq create outside the while loop to avoid flickerring of the output image. Why are you using a for loop use a direct reshape array and define the dimension = parameters you want and you will get the output in a 1d array.
08-12-2010 07:50 PM - edited 08-12-2010 07:51 PM
Hi Muks,
I apologize for not replying earlier, but I was out of the office. Thanks for your help.
I've tried to implement your first recommendation (I'll do the second once particle analysis will work), but it still doesn't work.
Please review the attached files-- front & back panels.
08-12-2010 08:48 PM
Also, when I use particle analysis in real time the image source and distribution are connected to the same wire (see attached file), so I thought it should work in the same manner when analyzing an avi....
08-13-2010 05:15 PM
When I tried to debug the software it showed that the image type isn't appropriate-- the IMAQ AVI Get Info sends out an RGB U32, and the particle analysis vi's don't like it. So I've tried to change the image to grey scale but the I only see a black screen.... Any idea how to fix it?