LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display a grab image using subVI

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(2,976 Views)
Solution
Accepted by topic author kanogui

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.

 

 

-----

The best solution is the one you find it by yourself
Message 2 of 5
(2,972 Views)

It works great, thanks for your help !!!! Really appreciate it 😄

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

0 Kudos
Message 3 of 5
(2,952 Views)

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

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,949 Views)

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?

0 Kudos
Message 5 of 5
(2,932 Views)