LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from sub-vi

Hello,
I am trying to create sub-vi that reads images from binary file. I specified starting and ending image. Output of this VI  should be  selected images, but  when  i  use this sub-vi , it only shows first and last image, but I need to see them continously.
I don't know how to make this sub-vi sending data continuously from each loop.
Can anybody help me?

Thank you very much

Tomas
0 Kudos
Message 1 of 4
(2,372 Views)

Hello Tomas,

Can you provide more information on your subVI?  Which VIs are you using inside of it?  If you can upload screenshots of your code, I think that would be extremely helpful, as I'm having some trouble visualizing how you are doing this.

Thanks!

Janell R | Applications Engineer

0 Kudos
Message 2 of 4
(2,352 Views)
There is the screenshot of sub-vi.
Output is Image.
I am just a beginner and maybe it is all wrong.
Thank you very much for your help.

Tomas
0 Kudos
Message 3 of 4
(2,338 Views)
Fry002--

     You are definately right...a subVI will only pass out the final value when the code is complete.  In order for you to pass data from one VI to another while they are both running you will need to use a global variable or a functional global variable. For information about using global variables check the LabVIEW help. Hope that helps.

-John H
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 4 of 4
(2,303 Views)