Problems With Vision Processing

We have been trying to learn how to process images using Vision Assistant in the last few days, but the VI file for the script we made
(The example script in the tutorial for Vision Assistant - http://www.ni.com/pdf/manuals/372228f.pdf) doesn’t work. The error code we got when we tried to debug the code was: -1074396080. The VI file is atached here.

Please help us,
Thanks.

Particle_Analysis.vi (21.4 KB)


Particle_Analysis.vi (21.4 KB)

My guess is that your subVI is fine provided you wire up a mono image to it. The camera and Get Image VI return color images. You may want to add one more step, which is to extract a color plane or otherwise convert to mono.

Greg McKaskle

Firstly, thanks - the vi works now. But there is another problem- when we try to debug the vi by watching the result image after each step of the processing - and we try to watch the image after being converted to binary- we get a black image. Is there any way to see the binary image in red\black the same way as in Vision Assistant while the code is running?
Thanks

It is a little annoying when that happens, but easy to correct. You right click on the image control – on the panel or in a probe, and you choose Palette>Binary. The others are more useful for color or monochrome.

Greg McKaskle