LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function

I want to use the TI c6000 DSK board but instead of programming the interface test routines in VC++ I want to do it in Labview. I have used Labview quite a bit and have used the Call library function before also.
But I have a problem.

The function dsk6x_open is define as
BOOL dsk6x_open(char *pfname, dskHANDLE *HandlePtr);
and is the first function to call to open the device.

The Bool type and the Char type is easy, but the dskHANDLE type is a bit of a mistery to me. In the Win32 example included on the DSK manuals,
the variable is defined as below:

dskHANDLE handle;
char *pfname = "c:\\ti\\c6000\\dsk6x11\\include\\ti_ppdsk.cfg";

if(dsk6x_open(pfname,&handle)){
etc............
}

How do you set the 2nd argument of the Call l
ibrary function to work with the dskHANDLE type. I suppose it is some kind of structure with its contends. The usual way is to pass a pointer to the structure if you
work in C. So how now ?? How do you set the Labview Call library function types and most important, what do you wire to go into the VI block??
0 Kudos
Message 1 of 2
(2,673 Views)
Adriaan,

As I stated in your original e-mail request, you will need to search through the header files to find out what type this data type is defined as. I would suggest doing a serch for typdef and dskHANDLE on the same line of a file. This is most likely where the solution will be.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,673 Views)