Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Keretex Driver

Hello,

I have a Keterex USB-910 SPI/I2C adapter, and I am trying to write Labview drivers that interface with the provided DLLs. Some of these DLL functions make use of double pointers. The GetInData function returns the captured data as a pointer to an array pointer. The prototype is as follows:

KXUSB_API KX_BOOL        kxGetInData        (KX_DATA **data, KX_COUNT *rcnt);

where KXDATA is type U8, and KX_COUNT is type U16.

I have looked through the documentation and a number of links, but I have not been successful. Would anyone be able to explain exactly how my Call Library Function node ought to be configured for this particular function?

Attached is the header file for the DLL.

Thank you!

0 Kudos
Message 1 of 3
(3,098 Views)

Hi,

 

Have you seen this Discussion Forum? The VI there should help you with setting up a Call Library Function Node for kxGetInData.

Hope this helps!

Rohama K.
0 Kudos
Message 2 of 3
(3,082 Views)

Thanks for the reply. I have seen that post. It deals with a more specific case involving a different function with a string paramenter, and using the CLF node on string VIs. However with some editing and experimenting, I think I may be getting good results. Some testing is still required though.

 

Thanks for your help.

 

For others who may be having issues with the CLF node and pointers, I recommend looking at these links:

 

https://decibel.ni.com/content/docs/DOC-9080

https://decibel.ni.com/content/docs/DOC-9091

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