LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the adress of a variable

Hi,
 
I'm using a .dll with Labview.
One of the function of the .dll ask me to give the adress where it will write the datas.
The parameter I must pass is a string :
"ImageAddress  = 0x45678554"
So, as you see, it seems I really need to get this adress.
How can I do with Labview ?
 
Thanks,
 
Pierre 
0 Kudos
Message 1 of 2
(2,507 Views)


@pierrot34 wrote:
Hi,
 
I'm using a .dll with Labview.
One of the function of the .dll ask me to give the adress where it will write the datas.
The parameter I must pass is a string :
"ImageAddress  = 0x45678554"
So, as you see, it seems I really need to get this adress.
How can I do with Labview ?

I'm afraid that you might be in trouble. In LabVIEW memory is highly dynamic which means that at the time you have evaluated the adress of a variable, formatted it in a string and passed it to the DLL, your variable is already gone from memory. Basically I would think a DLL that expects memory adresses as strings instead of as parameters is simply a joke.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(2,495 Views)