LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

*.exe Application of LabView ignores Global Data

Hello!

I have following problem:

I programmed two vi's, one which control global data, and the other
which indicates the global data. So if both are running, I'm able to see
the position of a "switch" in the "indicator.vi" which can be changed in
a "control.vi".
That works without problems.

But if I want to make two *.exe Files with the same functionallity, that
simple program will not work.

I'm using Labview 5.11 with the Application Builder for LabView 5.11

If somebody know to solve the problem please let me know.

Thanks a lot

Robert Hecker
0 Kudos
Message 1 of 3
(1,519 Views)
Globals are global only within the scope of the same executable.
To acces the global of another LV application, open an application reference
to that application and then a reference to the global VI. Use the Get/Set
Control Value invoke node on that VI with the control name.

Jean-Pierre Drolet


Robert Hecker a écrit dans le message :
395B340D.331B3B48@adc-gmbh.de...
> Hello!
>
> I have following problem:
>
> I programmed two vi's, one which control global data, and the other
> which indicates the global data. So if both are running, I'm able to see
> the position of a "switch" in the "indicator.vi" which can be changed in
> a "control.vi".
> That works without problems.
>
> But if I want to make two *.exe Files with the same functional
lity, that
> simple program will not work.
>
> I'm using Labview 5.11 with the Application Builder for LabView 5.11
>
> If somebody know to solve the problem please let me know.
>
> Thanks a lot
>
> Robert Hecker
>
0 Kudos
Message 2 of 3
(1,517 Views)
When you compile those two VI's in two separate executables they are two
different processes for the OS with separate memory space, etc., so that
behaviour is as espected. You can either compile them in one executable or
use VI server to set those values.
To exchange control values between to LV .exe's you can also designate these
executables as ActiveX servers and exchange info through ActiveX. Frankly I
see no reason for your two VI's two be a separate executables, I guess it is
just a simple experiment.

Cheers,

Reinis Kanders

"Robert Hecker" wrote in message
news:395B340D.331B3B48@adc-gmbh.de...
> Hello!
>
> I have following problem:
>
> I programmed two vi's, one which control global data, and the other
> which indicates the global d
ata. So if both are running, I'm able to see
> the position of a "switch" in the "indicator.vi" which can be changed in
> a "control.vi".
> That works without problems.
>
> But if I want to make two *.exe Files with the same functionallity, that
> simple program will not work.
>
> I'm using Labview 5.11 with the Application Builder for LabView 5.11
>
> If somebody know to solve the problem please let me know.
>
> Thanks a lot
>
> Robert Hecker
>




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 3 of 3
(1,517 Views)