LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi inheritance question

hello,

i am having a problem with data getting sent to multiple vi's.  i have a stacked sequence that is the top level gui.  it has two seperate vi's that get called when their button is selected and then there window opens.  it seems that if i put data in the first vi that it does not get inherited into the second vi unless i open it.  is there a way to send the data into the other vi without actually opening it.  i want it to perform certain calculations without it needing to be called.  thank you
0 Kudos
Message 1 of 5
(3,099 Views)
Can you include the code so we can take a look at it? There are quite a few things that could be happening here.

     Rob
0 Kudos
Message 2 of 5
(3,091 Views)
i put together a smaller example of what i mean.  the top level.vi contains the two buttons called first and second.  the sequence of events happens like this:

1. run top level.vi.
2. press the button labled second and  enter a hex value.  the binary conversion executes and then is sent to the other vi called first.  press exit
3. press the button labled first and you see the binary conversion.  press exit
4. press the button labled second and then the 'array' indicator contains the binary conversion.

what i really need is not to have to open and close the vi's and just enter a hex value and then the data appear in the 'array' indicator without opening the other vi.  i just made a quick example and this is not what i am doing, this is just something to help with the concept.
Download All
0 Kudos
Message 3 of 5
(3,079 Views)
you might need to clear the all the fields or initialize them to default, thanks
0 Kudos
Message 4 of 5
(3,074 Views)
Hi Ifoitek,
You can use global variable to pass data from one VI to another. With global variable, the value is always available for access in memory. However, a VI must be running or be called in order to have access the global variable. So am not clear on what you mean by ".. perform certain calculations without it needing to be called." Perhaps, it will be better you post the actual code.
 
Tunde A.
Message 5 of 5
(3,012 Views)