06-29-2010 05:57 PM
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,
06-30-2010 03:17 AM - edited 06-30-2010 03:19 AM
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.
06-30-2010 03:25 AM
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.
06-30-2010 04:09 AM
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.
06-30-2010 04:13 AM
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).
06-30-2010 04:22 AM
You do have a session out from the imaq grab right? Again are you trying to view video streams?
06-30-2010 04:39 AM
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.