NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
kanogui
Posts: 25
0 Kudos
Accepted Solution

display a grab image using subVI

Hi, i have a problem.. i hope it is easy to solve.

I did a VI using Grab IMAQdx so that i can adquire images from a USB Camera and save a video. It works great and i acquire and save the video. The problem is that when i try to do this VI as a subVI it doesn't work. For the subVI i'm using one terminal the one for the image display. When i run the program i can't see any image (set of images because i'm using grab and it seems like a video), but it seems that the subVI woks because when i open the file where the video was saved, the video is there but i can't see it at the momento on the front panel...

Any suggestions?

Active Participant
P@Anand
Posts: 1,617

Re: display a grab image using subVI

Your main vi will not update the image that you acquire in the sub vi because you would be running your sub vi inside a loop ( I guess). What you can do is create a global variable of Image display indicator and update the indicator inside the sub vi. In the main vi create a seperate while loop and read the global variable and display it in the main vi. Need a better solution? please post your code.

 

 

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
kanogui
Posts: 25
0 Kudos

Re: display a grab image using subVI

It works great, thanks for your help !!!! Really appreciate it :smileyvery-happy:

I have the same problem having DAQs assitants inside a subVI, any suggestions? Maybe the same solution?

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: display a grab image using subVI

Try to post your code of DAQ assistant that would be helpful and also explain what you want to achieve in that.

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
kanogui
Posts: 25
0 Kudos

Re: display a grab image using subVI

I just have DAQ assitants acquiring signal and with those signal doing some other operations. That's my subVI. Inside this subVI i have some indicators (led) indicating the value that the DAQ assitants give (i'm using digital inputs). I made this indicators terminals of the subVI and in the main VI i wired this terminals to the new indicators, but it seems not to work. I have other bottons in the subVI and the terminals also seem no to work. What could i do?

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page