LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing "globals" from 2 different executables

For an application we need to access the same set of "globals" from 2 different executables.

How can this be done?
0 Kudos
Message 1 of 3
(2,486 Views)
hi

can't be done (as far as i know). each executable has its own data space, so no memory or vis are shared between two executables (well, otherwise the behaviour of an app could change when other apps are opened). to share data between two apps i suggest to use dstp, tcp, udp or just a simple ini-file.

or: build a single application. the top level vi of the app calls both top level vis of your apps dynamically. then they use the same dataspace.

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 3
(2,481 Views)
Hi,

if you want to exchange data in real time I'd suggest using some TCP communication. It's quite easy to implement. Saving to a file and reading from with the other application is fine if the data doesn't change to often, but you'd have to poll the file for changes or tell the other application some way (TCP again...). BTW, you might think about using queues (or similars) but they do just work inside one application as well.

Regards,
Carsten
0 Kudos
Message 3 of 3
(2,476 Views)