LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing array to DLL

Solved!
Go to solution

Hi -

 

I need to interface with a DLL. I can communicate fine with most of the functions, but I can't figure out how to configure Call Library Function for "GPIO_Init". Can anyone with more experience help me out? I've attached the header, and also the manual - it's section 3.8.1 (page 37)

 

Many thanks,

Jon.

Download All
0 Kudos
Message 1 of 3
(3,702 Views)
Solution
Accepted by topic author Tournifreak

See this recent thread with approximately the same question: http://forums.ni.com/t5/LabVIEW/FTDI-FT4222-DLL-calling/m-p/3146709

In this case, you pass a LabVIEW array and configure the array parameter as an array, passed by array data pointer.

Message 2 of 3
(3,666 Views)

Thanks so much - the problem was nothing to do with the DLL at all. It was an (almost) undocumented requirement to "turn off" two of the other chip's features so the GPIO could be used. Thanks for the pointer!

0 Kudos
Message 3 of 3
(3,651 Views)