|
Re: Rectangle Processing code giving strange error
If you want to look up an error code, you can go to the help menu>>Explain Error and type it in.
The error simply says that the image is of the wrong type. IMAQ uses type to describe things like color, monochrome, or black and white.
I haven't seen this error, so I can't do much more than speculate what is going on. My guess is that when you flip to the color processing, your camera is not being changed to color -- the enable color property gets swapped. Or it gets flipped back and forth due to a logic change. Or perhaps it gets flipped, but the camera still has a few frames in the queue.
If this stabilizes and only happens when you first flip the tab, I guess you can go with the 3rd explanation and possibly rip out the stuff you aren't using. Otherwise, can you probe to see what type of image is coming out of the Camera Get function, and see if that explains it?
Greg McKaskle
|