LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL Calling Conventions, Need Help

Hey everyone,
need some help here...
 
How do I setup the 'call library function node' for a function in a dll which is called as such:
 
(in C)  bool get_dxdy_pos (signed short * pDXManual, signed short * pDYManual);
 
I'm not sure how I pass a pointer in labview, and as for the bool return I can just use an unsigned short int right?
 
Thanks
0 Kudos
Message 1 of 4
(2,700 Views)

Hi IEC,

As attachement you will find how the setup should be in LabVIEW, hope this helps

Christian

Message 2 of 4
(2,694 Views)

Sorry, I meant to ask what do I connect to the block terminals?  If it's a pointer, can I connect a control? or what?

 

thanks

0 Kudos
Message 3 of 4
(2,687 Views)
Whether it is a pointer or not, first af all the setup of the call library node function must be done, and if you want to pass a value
to the dll, you can connect a control, if you get a value from the dll, you will become a indicator.
 
You will find a lot of examples at ...\National Instruments\LabVIEWx.x\examples\dll
 
Christian
0 Kudos
Message 4 of 4
(2,673 Views)