From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

address operator in dll [&]

Hello,

I was programming some function in dll with LabView.

 

With the C code provided, I can handle most of them.  For example, when the dll function is "ReadOutData(unsigned int uiChannel, double uiData)", then I know I have to set two parameters in the dll property as unsigned integer and double, and link two numbers (integer and double)  to the boxes.

 

Now come to a special case, the dll function looks like: "ReadDataAddress(unsigned int &uiChannel)".

 

How do I handle such operator "&" in LabView?

 

Thanks in advance!

0 Kudos
Message 1 of 4
(2,561 Views)

Anyone have any idea, please?

0 Kudos
Message 2 of 4
(2,523 Views)

If you're asking how to call a dll with a pointer, set the parameter as if it wasn't a pointer, and in the 'Pass' field, select 'pointer to value'. Then just wire the variable as you would nomally (no need to 'get the address').

Message 3 of 4
(2,504 Views)