LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sharing a Global variable between two Labview applications

Hello,
A.exe and B.exe created by Labview 8.21. Both A.exe and B.exe run on the same PC. A and B exchanges data through a Global variable. Everything goes well if I launch both VI in Labview but when I try to launch the built executables A.exe and B.exe I get an error 1059. In B.exe I just use the Open Reference.vi icon to which I connect the path of the other application (A.exe) that already runs.
So the general question here is: how can I open a reference to labview application A from another labview application B, both running on the same computer.
Thanks for any hint,
Christophe
0 Kudos
Message 1 of 4
(3,134 Views)
One thing to remember is that the path to a VI is different when it is in a .exe as opposed to the development environment.  If you VI is c:\my app\myVI.vi in development, it will be c:\my app\myexe.exe\myVI.vi in the executable.
0 Kudos
Message 2 of 4
(3,128 Views)

Yes, i know that. The problem is that if I just do an Open VI reference I get an error 1025. If I insert an Open Application Reference before, by giving my PC Hostname then I get the error 1059.

What I want to do is so simple but I do not know what is going wrong,

Christophe

0 Kudos
Message 3 of 4
(3,123 Views)

With a user ID# of 298, you have been using LV for quite a while.

Review the release notes for LV 8.0 LV 8.2 etc and you will see that that two different exe's run in different contexts.

I'd use a LV2 and VI server to read and write. VI Server will let you use TCP/IP to talk between the two contexts.

Ben



Message Edited by Ben on 01-15-2008 12:50 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(3,116 Views)