LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interface call library function node

I'm trying to get a pointer to a structure below called

RfmDllPublic RFMHANDLE

__cdecl rfmOpen( char * devPath );

RFHANDLE using the call library function node. As I understand, choosing C-string for the conversion will set LV characters to C code type "pointer to a character", does this also handle the Big to little Endian conversion between Windows and LV data?

 

0 Kudos
Message 1 of 3
(2,607 Views)

I'm not near a computer with LV right now, but I believe it does. Even if not, you can handle it yourself in the code. More importantly, if I remember correctly, you need to create a string of the proper length and wire it into the CLF node, so that LV will have an area of memory to point to. You can do this by initializing an array of U8 and then using the Byte Array to String primitive on it.

There is quite a bit of documentation on this, but you have to search for it. Try searching on this site.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,594 Views)

Thanks for the response,

I reworked my code and got a pointer (unsigned long integer) out of the dll. So no work was needed for the conversion from llittle to big endian. phew

0 Kudos
Message 3 of 3
(2,570 Views)