Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass an image into a sub vi?

Using LV 8.2 here, I have created a sub vi to do some image processing. One of the inputs to this is an image. Before creating the sub vi I just took the image output of IMAQdx Grab.vi and used that as my start point.

 

Now that I'm trying to do the same with a sub vi I'm getting the error message that I've connected source IMAQdx.ctl to sink IMAQ Image.ctl

 

What am I missing?

0 Kudos
Message 1 of 3
(3,390 Views)

What are the color of the wires you are connecting? The IMAQ reference wires are typically aqua while the IMAQdx Image lines are purple.

 

More than likely the image operations inside of the SubVI are written with the IMAQ driver while the Main VI is trying to pass image information that was written with the IMAQdx driver.

 

Logan H

National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(3,368 Views)

IMAQdx.ctl is a reference to the camera session, while IMAQ Image.ctl is a reference to the grabbed image. It seems like you have just messed up some wires.


View my profile on LinkedIn
Message 3 of 3
(3,351 Views)