Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do video session out

Hi,

 

I've modified one of the examples in the IMAQ example library. Now, I'm trying to convert it to a subvi, but I'm not sure how to make the output connection because I want to connect it to an IMAQdx grab tool. Does someone know how to do video session out (and error if possible)?

I've always dealt with regular indicators but not with video/image.

 

Thank you,

0 Kudos
Message 1 of 7
(3,685 Views)

I think I am not getting it. Do you want to convert this into a sub vi? You can do it for sure. Which parameter do youwant to pass on? are you getting the images out of this correctly?

 

What is the camera that you are using? Are you trying to use the avi format? OR will viewing streaming videos be sufficient? If streaming is what you want you can simply put the grab inside a while loop and view a continous video o/p.

0 Kudos
Message 2 of 7
(3,675 Views)

Hi Muks,

 

Yeah, I want to convert it to a subvi. Essentially I want to have only the two loops as a subvi where the input is the camera tools on the left side and the output should go to a IMAQdx tool outside the subvi. Also, if it'll be a subvi, how will I control the camera attributes? should it be also a parameter? If you'll see my other post from today, the entire vi is a little messy, so I dont want to add more loops and etc... to it.

0 Kudos
Message 3 of 7
(3,671 Views)

I think you have to create a control for the attributes and create a subvi with that without the loop. YOu can put the loop in the main program.

0 Kudos
Message 4 of 7
(3,668 Views)

You mean put the loops as a subvi in the main program or just add it to the main programs' loop?

I can do the control and indicator, but I'm not sure how to set up the session in/out from the subvi (and the error in/out).

0 Kudos
Message 5 of 7
(3,666 Views)

You do have a session out from the imaq grab right? Again are you trying to view video streams?

0 Kudos
Message 6 of 7
(3,663 Views)

Yes, I try to veiw streams because I need to calculate the area of a centroid in real time. I have a session from imaq grab but it (the imaq grab) should be in the main program not in any subvi correct (to do the actual calculations in the main program)? I try to do stream out which I've seen in one of the examples, but NI locked the interface so I can't really see what that tool is. 

0 Kudos
Message 7 of 7
(3,658 Views)