ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data sharing with DLLs

I need to write LabVIEW wrappers for function calls to a dll. so for example, I have a Call Library Function Node configured, the input is a U16, the output is: the function return(I16) and 4 *pointers. But in my LaabVIEW program I want to work with 4 pieces of data, not 4 pointers, I don't know how to make this link?
Overall this is new territory to me, anybody know of a white paper, or examples, or able to offer some help?

thanx
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 2
(2,451 Views)
From the dll side, 4 pointers is the way to go.

From LabVIEW, simply configure the call library node to work with 4
pointers, and in LabVIEW you will get the 4 values. LabVIEW will get the
values frm the pointers from you, if you correctly configure the call
library node.

To do this without pointers is not practical, unless you make 4 export
functions, where each function returns one of the 4 parameters. I don't know
any reason why that will help you.

Regards,

Wiebe.


0 Kudos
Message 2 of 2
(2,425 Views)