LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable communication between 2 exes on same PC

I am trying to share a variable between 2 exes on the same PC, I tried with global and shared variable but it is not working.

 

 

i made 2 simple vis , In first i just wrote a boolean value in shared variable and read in the other but the value is not updating.

 

 

am i missing anything ...

 

 

Regards,,

 

Shrek

0 Kudos
Message 1 of 6
(2,674 Views)

Hi Shrek,

 

I have attached Project file for simple communication between two EXE using shared Variable. Check exe build procedure for you reference. While making exe you have to include shared variable library to deploy.

 

Check and let me know

 

This is in Labview version 2010

 

Prashant

CLAD

KUDOS ARE WELCOMED

PBP
Labview 6.1 - 2019
0 Kudos
Message 2 of 6
(2,654 Views)

can you please reply with version 2009,

 

thanks in advance

0 Kudos
Message 3 of 6
(2,643 Views)

Shrek,

 

Find 2009 version

 

Prashant

CLAD

KUDOS ARE WELCOMED.

PBP
Labview 6.1 - 2019
0 Kudos
Message 4 of 6
(2,635 Views)

hi

i have attested a VI with this in which you can share variables. jus create a spreadsheet file and give that path in the front panel. Do revert for clarifications.

 

regards

bharathwaj

0 Kudos
Message 5 of 6
(2,611 Views)

You have two major use cases for doing this.

 

  1. The executables are running in the same process on the same run-time engine.  You can do this by launching them correctly.  See this post for details.  The advantage of this is that it allows any of the normal interprocess communication methods to work (e.g. queues, notifiers, functional globals, etc.).  I would recommend this.
  2. The executables are running in separate processes on different run-time engines.  Communication will involve some sort of network protocol.  This could be networked shared variables, TCP, UDP, network streams, or, for old-timers, datasockets.  You will need a valid network stack for any of these to work right (initialized by default on modern operating systems).
0 Kudos
Message 6 of 6
(2,599 Views)