LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass address of the pointer array in the API function

Hi.
I want to know how to pass the array pointer address to the CLN in LabVIEW and i'm using the DLL for this API function.
 
This is my API function in C.
 
API_function ( Numeric,enum, sizeof(structure), &abInfo[0]);
 
typedef structure {
unsigned char a[16];
unsigned char b[16];
} mystruct
 
abInfo is an array of  unsigned char type
i.e unsigned char abInfo[300];
 
How can i do this?
 
 
0 Kudos
Message 1 of 6
(3,284 Views)

Hi,

Initialize a array with the correct type en length and connect this to the input of the interface node.

0 Kudos
Message 2 of 6
(3,262 Views)

Hi have created and configured the array to the correct type .But i dn't know how to capture the data from the hard ware card into teh labview arary ie

in my function, one of the parameters is &abInfo[0]

how could i do this?

0 Kudos
Message 3 of 6
(3,261 Views)
Can you post a basic VI with the interface node ?

Message Edited by K C on 12-21-2006 01:14 PM

0 Kudos
Message 4 of 6
(3,258 Views)

Hi,

I'm attaching the front panel,Block diagram and CLN configuration of my function

Download All
0 Kudos
Message 5 of 6
(3,237 Views)
Can you try to connect the array as shown in the picture ?
0 Kudos
Message 6 of 6
(3,222 Views)