LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll and global variables

I have a problem,

I created a labview application (exe) that writes values in a global variable. My global variable is a table of clusters. Each cluster is made of a name and a value.
I want to read some of these values from an external application (VB). Typically i enter the name, and i want to retrieve the corresponding value.

One solution (the one i tried ) consist of creating a labview dll that read the value. And then use this dll from VB. But i had severeal problems :

1) If i run both vi, setvalue, getvalue, everything works perfectly.
2) If i run setvalue vi , and try to get the value from my VB application, it doesn't work (get wrong value).
3) If i run setvalue.exe and try to get the value from getvalue.vi it doesn't work as well...

I think everything come from the memory management, maybe the global variable are loaded in a different memory ?? I don't know exactly how it works.. Could anyone help me ???
0 Kudos
Message 1 of 3
(2,916 Views)
Hi,

Maybe this application note will be of use

Link

regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,906 Views)
Bonjour,

Ce qui est sûr c'est que les données écrites dans la variable globale située dans l'exécutable ne peuvent pas être utilisées dans un autre VI essayant de lire ces valeurs par exemple. Le lien qui suit explique très bien cette notion. Chaque exécutable utilise sa propre mémoire.

http://digital.ni.com/public.nsf/websearch/FC8685670392E7C286256647006C1948?OpenDocument

Cordialement

DD
0 Kudos
Message 3 of 3
(2,879 Views)