LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help!!! Calling dll in labview

HI!

I would like to convert the attachment to labview.

This file is used in sdlc communication.

Request someone to really help me

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

I'm not sure I understand what you are looking for.

The code that you provided is how you call a dll in LabVIEW. 

 

Are you trying to avoid using a dll and implement the source code in LabVIEW?  If so, then you would need to show the source code.

But there is nothing wrong with calling a dll within LabVIEW as you have coded.

 

Or are you having difficulties while executing the code? 

 

Again, I'm not sure I understand what you are looking for.

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

I think I know what the trouble is. Most likely the OP wants to implement the overlapped data structure. This is a very tricky one and if the function works similar to WinAPI calls which support overlapped mode, it would be best to simply avoid overlapped operation altogether by passing a NULL pointer to this parameter. Overlapped mode is Microsoft speak for asynchronous operation. Passing a NULL pointer as overlapped parameter disables overlapped mode, forcing the function into synchronous operation.

 

The OP probably tried to do that already by wiring the "overlapped" control to this parameter and leaving it to NULL. But he forgot to change the configuration of this parameter in the CLN to be a pointersized integer. Leaving it as Adapt to Type LabVIEW will pass a pointer to the 0 integer to the function which is of course totally wrong.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(2,724 Views)