From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-06-2009 01:43 PM
Hi, I'm trying to overlay and image I'm getting from a NI-1409 pci card over an image I'm getting from a usb camera. I've setup the following VI to accomplish this:
As you can see, I'm getting an error with the imageToimage2 block. The strange thing is that this VI works the first time I run it. Once I stop it and try to run it again, I recieve the error. After the first run, if I want it to work again, I need to stop the VI, close Labview 8.5 and reopen it, then run.
Any ideas as to what I'm doing incorrectly?
Thanks
07-07-2009 06:36 PM
Hi Bad Noodle,
I can't do too much troubleshooting on this one without the code. Can you post it so that I can actually see what's going on?
07-08-2009 12:30 PM
Sorry, I'm new to LabView, do you mean the VI file? I attached it just in case.
07-09-2009 04:05 PM
Hi Bad Noodle,
Have you tried wired in an imaq image into the Image Dst on the ImagetoImage 2 VI? My thoughts are that this might be caused by the images being different types, which you are trying to remedy with the IMAQ Cast Image. Let's try to force the matter by wiring the Image Dst.
07-13-2009 01:41 PM
Thanks. I tried wiring the Image Dst to each of the input images. The conversion one I tried to wire before the conversion and after the conversion. I also tired creating a new Imaq image and wiring it to that. I tired that with the Imaq create being wired and not wired to the image type from the frame grabber. Unfortunatly none of it solved the problem.
For reference, I followed instructions at:
http://www.csun.edu/~rd436460/Labview/IMAQ-Manual.pdf
page 23 or 2-5
07-13-2009 02:15 PM
I'm starting to think that this is not a conversion block problem, but something that happens when I press the stop button. I tried getting rid of the casting block and added a property inspector block strait from the usb image aquire block, and i get the same error. If I try to add a conversion block (a equalize image) I get an error saying that the image is too small.
I think that the system is not releasing the resources properly when I hit the stop button, so the next time I run it, the program can not obtain the recources for the usb camera and gives me the error.
So am I releasing the resources correctly?
07-13-2009 02:50 PM
There is a bug with the USB vis that they only take a RGB (U32) image. When you use Cast Image you change the image reference to another type.
Add another Create Image and connect it to your Cast Image function to give it a destination. I think this may solve your problem.
07-14-2009 09:02 AM - edited 07-14-2009 09:05 AM
Thanks, I tried that, but I still have the problem. I wired it up like:
Then, I took the imageToimage2 and the cast blocks out to make it look like:
When I did this, I saw the image the first time I ran the program, but the second time, no image appeared. So it is a problem with the USB camera resource being released. It doesn't happen properly.
The only thing I can think of is that maybe I need to seperate loops that run in parrallel and spit out images. I don't know how to wire that up though.
07-14-2009 09:19 AM
I tried just the USB camera:
This won't even run a second time. . . I'm stumped
07-14-2009 09:38 AM